1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/server
Drew Hays 4881cd346b 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
2018-05-06 22:57:27 +02:00
..
build Add export of homepage when exporting without exportPathMap (#4253) 2018-05-02 10:37:52 -07:00
lib Support Node 6 again. check if async/await is supported (#4283) 2018-05-06 18:39:29 +02:00
config.js Allow BUILD_ID to be set using generateBuildId (minor) (#3873) 2018-03-31 16:34:52 +02:00
document.js Expose app.js (#4129) 2018-04-12 10:33:22 +02:00
export.js Exclude _app.js since it’s not a normal page (#4201) 2018-04-23 13:27:53 -07:00
hot-reloader.js Upgrade standard.js (#4064) 2018-03-27 20:11:03 +02:00
index.js Support Node 6 again. check if async/await is supported (#4283) 2018-05-06 18:39:29 +02:00
next.js Programmatic API (#310) 2016-12-16 12:33:08 -08:00
on-demand-entry-handler.js Remove mz-fs and glob-promise (#4026) 2018-03-30 20:29:42 +05:30
render.js Update Cache-Control for render errors (#4111) 2018-05-06 22:57:27 +02:00
require.js Add flow, pages-manifest.json, defaultPathMap for export (minor) (#4066) 2018-03-30 15:08:09 +02:00
router.js Use a latest version of path-to-regexp for path-match (#3655) 2018-02-01 19:54:09 +01:00
utils.js Universal Webpack (#3578) 2018-01-30 16:44:44 +01:00