Skip to content

Commit 30c1519

Browse files
committed
Add Expires default header
- Add Expires header for legacy browser support - Add max-age=0 directive to Cache-control
1 parent 6095e9e commit 30c1519

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ Prevent cross-site injections
7171
Enable full referrer if same origin, remove path for cross origin and disable referrer in unsupported browsers
7272
**Default Value:** `no-referrer, strict-origin-when-cross-origin`
7373

74-
#### Cache-control / Pragma
74+
#### Cache-control / Pragma / Expires
7575
Prevent cacheable HTTPS response
76-
**Default Value:** `no-cache, no-store, must-revalidate` / `no-cache`
76+
**Default Value:** `no-cache, no-store, must-revalidate, max-age=0` / `no-cache` / `0`
7777

7878
#### Feature-Policy
7979
Disable browser features and APIs
@@ -92,8 +92,9 @@ X-Frame-Options: SAMEORIGIN
9292
X-XSS-Protection: 1; mode=block
9393
X-Content-Type-Options: nosniff
9494
Referrer-Policy: no-referrer, strict-origin-when-cross-origin
95-
Cache-control: no-cache, no-store, must-revalidate
95+
Cache-control: no-cache, no-store, must-revalidate, max-age=0
9696
Pragma: no-cache
97+
Expires: 0
9798
```
9899

99100
### Options

0 commit comments

Comments
 (0)