mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
7b009bf1fe
refs https://github.com/TryGhost/Toolbox/issues/410 - The 'private' value in 'Cache-Control' response header for all errors made it impossible for shared caches (e.g.: Fastly, Cloudflare) to cache 404 responses efficiently. - The change substitutes 'max-age=0' which should not effect the browser cache behavior but would allow shared caches to process such requests efficiently. - A more loose caching logic only applies to 404 responses from GET requests that are not user-specific (non-authenticated, non-cookie containing requests)
33 lines
794 B
JSON
33 lines
794 B
JSON
{
|
|
"name": "@tryghost/mw-error-handler",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
|
|
"test": "yarn test:unit",
|
|
"lint": "eslint . --ext .js --cache"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"devDependencies": {
|
|
"c8": "7.12.0",
|
|
"mocha": "10.0.0",
|
|
"should": "13.2.3",
|
|
"sinon": "14.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/debug": "0.1.18",
|
|
"@tryghost/errors": "1.2.16",
|
|
"@tryghost/http-cache-utils": "0.1.3",
|
|
"@tryghost/tpl": "0.1.18",
|
|
"lodash": "4.17.21",
|
|
"semver": "7.3.7"
|
|
}
|
|
}
|