• Resolved thinkwired

    (@thinkwired)


    Is there a reason why the browser cache expires headers lifetime option is linked to how long a page is stored in cache on the server (TTL)?

    That is to say, can I set a browser cache of 1 day but not create a newly cached version of the page for 30 days?

    I have found this question asked a couple of times but, I’ve never seen it answered.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @thinkwired

    Thank you for your inquiry and I am happy to assist you with this.
    The TTL or expires header option in Performance>Browser Cache by default is 3600s. This means that after 1 hour the browser will fetch the cached page.
    This does not mean that the new cached page will be generated, as the page will remain the same cached page if the cache is not purged, Article/post updated.
    TO answer your question, yes you can set the BC expires header to one day or 86400s and the cached page will remain the same unless the cache is purged.
    I hope this explains it.
    Thanks!

    Thread Starter thinkwired

    (@thinkwired)

    Thank you for clearing this up. I’ve seen this asked a number of times now, I don’t think its clear to everyone.

    So, a cached page will remain cached until either;

    1. Someone manually clears the cache.
    2. A page/post is updated.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @thinkwired

    Yes, that is correct.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Browser cache vs life of cached page?’ is closed to new replies.