diff options
| author | Fuwn <[email protected]> | 2023-12-27 00:46:39 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-27 00:46:39 -0800 |
| commit | 82e71d9f5a60cd1588f58497d3e7cca300e22094 (patch) | |
| tree | 2779e8375e51a52d4f10313d4345a4c9e352ed45 | |
| parent | feat: initial release (diff) | |
| download | due-proxy-82e71d9f5a60cd1588f58497d3e7cca300e22094.tar.xz due-proxy-82e71d9f5a60cd1588f58497d3e7cca300e22094.zip | |
fix(src): cache control
| -rw-r--r-- | src/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 74c9317..c812176 100644 --- a/src/index.js +++ b/src/index.js @@ -43,7 +43,7 @@ async function handleRequest(request) { // Append to/Add Vary header so browser will cache response correctly response.headers.append('Vary', 'Origin'); - response.headers.append('max-age', '300'); + response.headers.set('Cache-Control', 'max-age=300'); // Return it return response; |