• Resolved Mwalimug

    (@mwalimug)


    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

    (@macmanx)

    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 so the plugin’s developers and support community can help you with this.

    Thread Starter Mwalimug

    (@mwalimug)

    We’re not using WP Super Cache or indeed any cache plugin at this point.

    Moderator James Huff

    (@macmanx)

    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

    (@mwalimug)

    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

    (@mwalimug)

    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

    (@macmanx)

    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

    (@mwalimug)

    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.

    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.

    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

    (@macmanx)

    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

    (@mwalimug)

    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

    (@macmanx)

    You’re welcome!

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

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