Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit f05b6aa

Browse files
authored
Merge pull request #4333 from withspectrum/2.4.77
2.4.77
2 parents 3f27d8b + 2041372 commit f05b6aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hyperion/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import toobusy from 'shared/middlewares/toobusy';
1616
import addSecurityMiddleware from 'shared/middlewares/security';
1717

1818
const PORT = process.env.PORT || 3006;
19-
const SEVEN_DAYS = 604800;
19+
const ONE_HOUR = 3600;
2020

2121
const app = express();
2222

@@ -152,7 +152,7 @@ app.use(
152152
// (the filename changes if the file content changes, so we can cache these forever)
153153
res.setHeader(
154154
'Cache-Control',
155-
`max-age=${SEVEN_DAYS}, s-maxage=${SEVEN_DAYS}`
155+
`max-age=${ONE_HOUR}, s-maxage=${ONE_HOUR}`
156156
);
157157
}
158158
},
@@ -165,7 +165,7 @@ app.get('/static/js/:name', (req: express$Request, res, next) => {
165165
if (existingFile.indexOf('.html') === -1) {
166166
res.setHeader(
167167
'Cache-Control',
168-
`max-age=${SEVEN_DAYS}, s-maxage=${SEVEN_DAYS}`
168+
`max-age=${ONE_HOUR}, s-maxage=${ONE_HOUR}`
169169
);
170170
}
171171
return res.sendFile(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Spectrum",
3-
"version": "2.4.76",
3+
"version": "2.4.77",
44
"license": "BSD-3-Clause",
55
"devDependencies": {
66
"@babel/preset-flow": "^7.0.0",

0 commit comments

Comments
 (0)