• Resolved Morshed Alam

    (@sumon1068)


    I was using Litespeed cache plugin with the default Cache-Control max-age=604800 (1 week)

    But your plugin says the recommended value for the Browser Cache-Control max-age is between 60 and 600 (10 minutes highest). Why is that low number recommended?

    What if I use 1 week instead of 10 minutes? Will it create any problem?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @sumon1068,
    It is highly recommended not to change those number and keep them to the default for the best result. The reason of why this plugin has a low max-age value of just 60 is because this plugin also takes advantage of s-maxage which is a value where you say for how long you are requesting the CDN to cache the content. That value is set to 1 year.

    So, basically the reason browser cache is lower to ensure the browser doesn’t keep the cached content for a long time so when the item is updated even on CDN the browser will not reflect it, causing issues. Whereas we are requesting the CDN the cache the content for 1 year so that the latest content card be quickly served from your nearest CDN edge.

    Thread Starter Morshed Alam

    (@sumon1068)

    Thanks for the explanation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache-Control max-age’ is closed to new replies.