I noticed that cache-control headers are not set for dynamic content. For example, if I go to the “about-us” page of our test site, I get the following headers:
content-type: text/html; charset=UTF-8
date: Wed, 31 Mar 2021 22:51:29 GMT
x-powered-by: W3 Total Cache/2.1.1
I have Browser Cache enabled. Under “General,” I have the following options enabled: Set Last-Modified header, Set expires header, Set cache control header, Set entity tag (ETag), Set W3 Total Cache header. (I have additional options selected for CSS, JS, HTML, etc — these all seem to work fine).
Does W3TC support setting cache-control headers for dynamic content?
Note that we are attempting to use a CDN to cache dynamic content, so we have page-cache disabled. My hope is to configure W3TC to send a cache-control:no-cache, Last Modified and etag headers for dynamic pages so that the CDN will revalidate and serve the updated content if necessary.
Thank you for reaching out, and thanks for using W3 Total Cache.
Can you please share the website URL so I can check this?
Also, please make sure that the CDN is respecting the existing headers, and that you are not using any other custom .htaccess/nginx rules for the cache control.
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Cache-Control headers for dynamic content’ is closed to new replies.