• Hi,

    How long do pages remain in the CDN cache? I saw the response headers of a webpage loaded from CDN cache and it says the following:

    
    cache-control: no-store, no-cache, must-revalidate
    content-encoding: br
    content-length: 28180
    content-type: text/html; charset=UTF-8
    date: Fri, 19 Jun 2020 13:17:31 GMT
    etag: "100842-1592572438;br"
    expires: Thu, 19 Nov 1981 08:52:00 GMT
    

    So, the file is loaded from the CDN every time user requests it. However, my questions is different. I want to know how long the CDN keeps the webpage and other files in its own cache before getting a new version from the original server?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter 9itish

    (@9itish)

    One more question:

    How long does LiteSpeed use the same critical CSS files? For example, if LiteSpeed generates critical CSS for a bunch of pages. Will it always keep using the same critical CSS? For example, will it keep using the same critical CSS after 2 days, 3 months or 2 years?

    Thanks.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    That may depends on your CDN provider , generally speaking , the dynamic page should not be cached at CDN , except QUIC.cloud CDN.

    the static resources are meant to be cached on CDN node , but for how long , it depends on your CDN provider , some provider just respects the cache-control header , some provider has a particular setting to set how long it is kept.

    As CCSS generation is expensive , and rarely changes , it CCSS won’t expire on its own , only until you click “purge CCSS”

    Best regards,

    Thread Starter 9itish

    (@9itish)

    Thanks @qtwrk ??

    I am sorry for the confusion in above question. I was talking about the QUIC.cloud CDN cache when I asked how long are dynamic pages cached by the CDN.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    In case of QC , dynamic cache TTL should be same as your setting in Cache , as this screenshot

    View post on imgur.com

    It will work as same as your local LiteSpeed Cache , whenever you update/post/edit something , it will call the purge , the purge will also clean the cache on QC node.

    Best regards,

    • This reply was modified 4 years, 8 months ago by qtwrk.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How long do webpages remain in CDN cache?’ is closed to new replies.