Changeset e2ea5c4 in Klonkt for src/middleware
- Timestamp:
- 07/21/2026 03:55:26 AM (7 weeks ago)
- Branches:
- main
- Children:
- fb30b5d
- Parents:
- f574435
- git-author:
- Robin <roboburr@…> (07/21/2026 03:55:23 AM)
- git-committer:
- Robin <roboburr@…> (07/21/2026 03:55:26 AM)
- File:
-
- 1 edited
-
src/middleware/render.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/middleware/render.js
rf574435 re2ea5c4 73 73 // (Vary also applies to intermediate caches / Cloudflare.) 74 74 res.setHeader('Vary', 'HX-Request'); 75 if (isPartial) res.setHeader('Cache-Control', 'no-store'); 75 // A full HTML page must always be revalidated so an online visitor gets the 76 // fresh site, never a heuristically-cached copy. no-cache (not no-store) still 77 // allows bfcache and conditional requests. Partials stay no-store (see above). 78 res.setHeader('Cache-Control', isPartial ? 'no-store' : 'no-cache'); 76 79 77 80 // Does this (non-god) user own a site? Determines whether they see an "Admin"
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)