# How to enable Cloudflare caching of images and css only (exclude .js files and admin area)

**URL:** <https://meta.discourse.org/t/how-to-enable-cloudflare-caching-of-images-and-css-only-exclude-js-files-and-admin-area/222996>\
**Category:** Self-hosting\
**Created:** [April 3, 2022, 12:23pm UTC](https://meta.discourse.org/t/how-to-enable-cloudflare-caching-of-images-and-css-only-exclude-js-files-and-admin-area/222996 "2022-04-03T12:23:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)\
**Post date:** [November 22, 2023, 2:30pm UTC](https://meta.discourse.org/t/how-to-enable-cloudflare-caching-of-images-and-css-only-exclude-js-files-and-admin-area/222996/4 "2023-11-22T14:30:25Z")

</div>

I should have mentioned you should also [add this in config](https://meta.discourse.org/t/how-do-you-setup-cloudflare/32258/6). So you will have real-ips in admin panel.

---

_[View the full topic](https://meta.discourse.org/t/how-to-enable-cloudflare-caching-of-images-and-css-only-exclude-js-files-and-admin-area/222996)._
