diff --git a/README.md b/README.md index 8863a10..e3bbb6d 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,10 @@ This plugin was created out of a need for an easy way to disable client-side cac ### Why these headers? -- `Cache-Control` - Primary response header for configuring cache controls [since HTTP/1.1](https://httpwg.org/specs/rfc7234.html#header.cache-control); whilst `no-store` is the directive to disable caching, clients such as [Internet Explorer](https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/connectivity-navigation/how-to-prevent-caching#the-cache-control-header) did not use it, thus the addition of `max-age=0, must-revalidate` -- `Expires` - Included for backwards compatibility with [HTTP/1.0 caches](https://w3.org/Protocols/HTTP/1.0/spec.html#Expires) -- `Pragma` - Included for backwards compatibility with [HTTP/1.0 caches](https://w3.org/Protocols/HTTP/1.0/spec.html#Pragma), was [used by Internet Explorer](https://docs.microsoft.com/en-us/troubleshoot/developer/browsers/connectivity-navigation/how-to-prevent-caching#the-pragma-no-cache-header) -- `Surrogate-Control` - Not a standardised response header but is [used by CDNs and reverse proxies](https://w3.org/TR/edge-arch/) for cache control +- `Cache-Control` - Primary response header for configuring cache controls [since HTTP/1.1](https://httpwg.org/specs/rfc7234.html#header.cache-control); whilst `no-store` is the directive to disable caching, clients such as [Internet Explorer](https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/connectivity-navigation/how-to-prevent-caching#the-cache-control-header) did not use it, thus the addition of `max-age=0, must-revalidate` +- `Expires` - Included for backwards compatibility with [HTTP/1.0 caches](https://w3.org/Protocols/HTTP/1.0/spec.html#Expires) +- `Pragma` - Included for backwards compatibility with [HTTP/1.0 caches](https://w3.org/Protocols/HTTP/1.0/spec.html#Pragma), was [used by Internet Explorer](https://docs.microsoft.com/en-us/troubleshoot/developer/browsers/connectivity-navigation/how-to-prevent-caching#the-pragma-no-cache-header) +- `Surrogate-Control` - Not a standardised response header but is [used by CDNs and reverse proxies](https://w3.org/TR/edge-arch/) for cache control ## Installation @@ -66,9 +66,9 @@ Please adhere to this project's [Code of Conduct](https://github.com/Fdawgs/.git ## Acknowledgements -- [**Aras Abbasi**](https://github.com/uzlopak) - TypeScript support -- [**Evan Hahn**](https://github.com/EvanHahn) - [nocache](https://github.com/helmetjs/nocache) developer -- [**Matteo Collina**](https://github.com/mcollina) - Optimisation suggestions +- [**Aras Abbasi**](https://github.com/uzlopak) - TypeScript support +- [**Evan Hahn**](https://github.com/EvanHahn) - [nocache](https://github.com/helmetjs/nocache) developer +- [**Matteo Collina**](https://github.com/mcollina) - Optimisation suggestions ## License diff --git a/package.json b/package.json index fa45f54..3583821 100644 --- a/package.json +++ b/package.json @@ -67,24 +67,24 @@ "testTimeout": 10000 }, "devDependencies": { - "@commitlint/cli": "^19.0.3", - "@commitlint/config-conventional": "^19.0.3", - "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0", - "@types/jest": "^29.5.12", - "eslint": "^8.56.0", + "@commitlint/cli": "^19.6.1", + "@commitlint/config-conventional": "^19.6.0", + "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1", + "@types/jest": "^29.5.14", + "eslint": "^8.57.1", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jest": "^27.9.0", - "eslint-plugin-jsdoc": "^48.1.0", - "eslint-plugin-promise": "^6.1.1", - "eslint-plugin-regexp": "^2.2.0", - "eslint-plugin-security": "^2.1.1", + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jest": "^28.10.0", + "eslint-plugin-jsdoc": "^50.6.1", + "eslint-plugin-promise": "^7.2.1", + "eslint-plugin-regexp": "^2.7.0", + "eslint-plugin-security": "^3.0.1", "fastify": "^5.0.0", - "husky": "^9.0.11", + "husky": "^9.1.7", "jest": "^29.7.0", "license-checker": "^25.0.1", - "prettier": "^3.2.5", + "prettier": "^3.4.2", "spdx-copyleft": "^1.0.0", "upath": "^2.0.1" },