I was having some issues with the Cache API not working as expected. I found that if the response already had a Cache-Control header, I needed to set instead of append. According to the documentation for set, set creates the header if it doesn't exist. I think it should be safe to change the append to set in the template.
Hi,
I was having some issues with the Cache API not working as expected. I found that if the response already had a
Cache-Control
header, I needed toset
instead ofappend
. According to the documentation forset
, set creates the header if it doesn't exist. I think it should be safe to change theappend
toset
in the template.