# Cache-Control Caddy Reverse Proxy and Ghost caching settings

**URL:** <https://forum.ghost.org/t/cache-control-caddy-reverse-proxy-and-ghost-caching-settings/20889>\
**Category:** Installation\
**Created:** [March 18, 2021, 12:12pm UTC](https://forum.ghost.org/t/cache-control-caddy-reverse-proxy-and-ghost-caching-settings/20889 "2021-03-18T12:12:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boryl](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Boryl](https://forum.ghost.org/u/Boryl)\
**Post date:** [March 18, 2021, 12:12pm UTC](https://forum.ghost.org/t/cache-control-caddy-reverse-proxy-and-ghost-caching-settings/20889/1 "2021-03-18T12:12:41Z")

</div>

Hi,

I can see Cache-Control by Caddy Reverse-Proxy and those set by Ghost. if i set to “no cache” some parts of website, I still get cache max age settings from Ghost. Should I disable Ghost’s cache settings or perhaps disable caddy caching?

---

<div class="post-metadata">

**Author:** ![Boryl](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Boryl](https://forum.ghost.org/u/Boryl)\
**Post date:** [March 18, 2021, 8:20pm UTC](https://forum.ghost.org/t/cache-control-caddy-reverse-proxy-and-ghost-caching-settings/20889/2 "2021-03-18T20:20:19Z")

</div>

This what I got for the image file. As you can see Cache-Control is doubled.

```auto
HTTP/2 200
accept-ranges: bytes
cache-control: public, max-age=604800, must-revalidate #### That's Caddy Proxy setting
cache-control: public, max-age=31536000 ##### It was added by Ghost CMS, I think.
content-security-policy: default-src https: 'unsafe-inline' 'unsafe-eval'
content-type: image/jpeg
date: Thu, 18 Mar 2021 19:47:23 GMT
etag: W/"19d00-178268f9512"
expect-ct: max-age=604800
feature-policy: accelerometer 'none'; autoplay 'none'; camera 'none'; encrypted-media 'none'; fullscreen 'self'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture *; sync-xhr 'none'; usb 'none'
last-modified: Fri, 12 Mar 2021 13:10:47 GMT
referrer-policy: same-origin
strict-transport-security: max-age=31536000; includesubdomains; preload
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-powered-by: the Holy Spirit
x-robots-tag: noarchive, notranslate
x-xss-protection: 1; mode=block
content-length: 105728

```

---

<div class="post-metadata">

**Author:** ![srijan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/srijan/32/11701_2.png) [@srijan](https://forum.ghost.org/u/srijan)\
**Post date:** [March 19, 2021, 5:14pm UTC](https://forum.ghost.org/t/cache-control-caddy-reverse-proxy-and-ghost-caching-settings/20889/3 "2021-03-19T17:14:40Z")

</div>

What does your Caddyfile look like? Usually, there’s no need of any custom cache control overrides on reverse proxy layer.

---

<div class="post-metadata">

**Author:** ![Boryl](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Boryl](https://forum.ghost.org/u/Boryl)\
**Post date:** [March 19, 2021, 6:02pm UTC](https://forum.ghost.org/t/cache-control-caddy-reverse-proxy-and-ghost-caching-settings/20889/4 "2021-03-19T18:02:16Z")

</div>

Indeed, I am not sure Ghost caching is good enough, if it does then maybe I do not need proxy caching.

---

<div class="post-metadata">

**Author:** ![jackyjoy123](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jackyjoy123](https://forum.ghost.org/u/jackyjoy123)\
**Post date:** [March 25, 2021, 10:07am UTC](https://forum.ghost.org/t/cache-control-caddy-reverse-proxy-and-ghost-caching-settings/20889/5 "2021-03-25T10:07:56Z")

</div>

thanks my issue has been fixed.
