Changeset 7a93fcf in Klonkt
- Timestamp:
- 07/29/2026 03:38:18 PM (6 weeks ago)
- Branches:
- main
- Children:
- 6089c53
- Parents:
- d56d471
- File:
-
- 1 edited
-
src/server.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/server.js
rd56d471 r7a93fcf 264 264 // refuses to render it). Set cross-origin explicitly for /media. 265 265 setHeaders: (res) => res.setHeader('Cross-Origin-Resource-Policy', 'cross-origin'), 266 // An upload never changes under its name (unique filenames; a new upload is 267 // a new name), so say so. Without this the default is max-age=0 and every 268 // platform image-loader may re-ask for every image on every screen: Shaer's 269 // cards visibly re-loaded what the previous view had just shown. The thumbs 270 // and the avatar proxy already declared this; the originals were the one 271 // place that forgot. 272 maxAge: isDev ? 0 : '1y', 273 immutable: !isDev, 266 274 })); 267 275
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)