Title: Setting Cache-Control
Last modified: September 1, 2016

---

# Setting Cache-Control

 *  Resolved [Mwalimug](https://wordpress.org/support/users/mwalimug/)
 * (@mwalimug)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/)
 * Apparently my cache control is set to 30 days–a Cloudflare tech told me: “I see
   your origin headers set the max-age = 2592000”
 * I don’t have any idea how the cache got set to such a ridiculous level, and no
   idea how to change it. Can anyone help?
 * Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530294)
 * It looks like you’re using Wp Super Cache. You can set its cache expiry time 
   under its Advanced settings tab.
 * If that still isn’t working for you, I recommend asking at [https://wordpress.org/support/plugin/wp-super-cache](https://wordpress.org/support/plugin/wp-super-cache)
   so the plugin’s developers and support community can help you with this.
 *  Thread Starter [Mwalimug](https://wordpress.org/support/users/mwalimug/)
 * (@mwalimug)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530333)
 * We’re not using WP Super Cache or indeed any cache plugin at this point.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530352)
 * This is currently line 993 of the source output of `fanboynation.com`
 * `<!-- Cached page generated by WP-Super-Cache on 2016-06-29 13:10:23 -->`
 *  Thread Starter [Mwalimug](https://wordpress.org/support/users/mwalimug/)
 * (@mwalimug)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530436)
 * Ah. I should have mentioned the site.
 * FanboyNation does have WP Super Cache installed. FangirlNation, which is the 
   site I’m worried about, doesn’t.
 * I wonder if installing it would override whatever is going on with the origin
   headers.
 *  Thread Starter [Mwalimug](https://wordpress.org/support/users/mwalimug/)
 * (@mwalimug)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530442)
 * I’ve tried installing it to see if that helps.
 * No one I’ve talked to seems to know what the origin headings are or where to 
   modify them.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530443)
 * WordPress doesn’t add them on its own, so if you aren’t already using a caching
   plugin, maybe there’s a server-level cache, like Varnish.
 *  Thread Starter [Mwalimug](https://wordpress.org/support/users/mwalimug/)
 * (@mwalimug)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530473)
 * And our host swears they have no access to our origin headings.
 * So–anyone know who does?
 * It looks like adding Super Cache to FGN may have solved the problem (I hope!)
   but now I’m curious as well.
 *  [kobashicomputing](https://wordpress.org/support/users/kobashicomputing/)
 * (@kobashicomputing)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530474)
 * Are you 100% sure that Cloud Flare isn’t using its own services to optimize your
   content? Your web page source is minified. Also, they specifically state that
   they do on their website under [this link](https://www.cloudflare.com/features-optimizer/).
 * Look where it says “Cache header optimization”…
 * **Cache header optimization**
 * > Automatically adjusts the cache header instructions so browsers will correctly
   > cache the resources of a site to minimize the need for new requests.
 * Or did you set your own Page Rules from you CloudFlare account?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530476)
 * I have to agree with the above.
 * One other possibility is that you had once used a caching plugin, and its .htaccess
   remnants were still around.
 *  Thread Starter [Mwalimug](https://wordpress.org/support/users/mwalimug/)
 * (@mwalimug)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530514)
 * I’m quite sure CloudFlare isn’t messing with things–they’re the first people 
   I asked & checked. They said the origin header was overriding the setting I had
   there.
 * I can’t figure out how an old cache plugin would have left things set to 30 days,
   but fortunately, the addition of Super Cache seems to have fixed the real problem.
 * Though I’d still like to know who sets origin headers where…
 * And thanks to everyone who took the time to check on this & provide their thoughts!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530519)
 * You’re welcome!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Setting Cache-Control’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/setting-cache-control/#post-7530519)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
