According to Netlify ignores cache-control for 304 - #29 by hrishikesh there still seems to be the problem that custom headers (_headers file) work for 200, but not for status code 304.
Please fix!
Thanks in advance!
Is it correct, that I cannot use js and meta tags to set expires
?
How to set the cache to expire at midnight with Netlify then?
Thanks in advance for your help!
Hi @net-user ,
You might be interested in:
Hi, @enginedigital . It is intentional that the 304 response does not have the other headers. The 304 is saying “use your locally cached version of this response”. The local system will then use the headers of the original 200 response that was cached.
This is covered in the RFCs for the HTTP protocol. The section about 304 responses can be found here:
https://www.rfc-editor.org/rfc/rfc2616#section-10.3.5
That says that only three types of headers are mandatory (MUST) for 304 responses:
Dat…