Update Cache-Control for render errors (#4111)
When running some tests, I noticed that Akamai was still caching the response for render errors for some reason. Honestly, I would've thought that `no-store, must-revalidate` would be enough to prevent the CDN from caching it. That being said, MDN's documentation on [Cache-Control] has a section called ["Preventing Caching"] and recommends also using the `no-cache` directive. Given the definitions provided for `no-cache` and `no-store`, I can't tell much of a difference between these two. But I _do_ know that, for whatever reason, Akamai seems to respect the `no-cache` value for this header. [Cache-Control]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control ["Preventing Caching"]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#Preventing_caching
Showing
Please
register
or
sign in
to comment