Setting staleWhileRevalidate in the configuration does not actually set stale-while-revalidate #22131
Open
1 task done
Labels
P3 - Medium
[triage] Bugs which we'll fix soon
Issue Summary
In order to leverage Cloudflare edge cache for a request to
/
and avoid overloading my server with requests, I would like to set some level of staleness to my cache (in the absence of Last Modified of E-tag headers on ghost's part).Steps to Reproduce
index.html
butstale-while-revalidate
is not set.This is unexpected as staleWhileRevalidate is listed as an option in the cache middleware:
Ghost/ghost/mw-cache-control/lib/mw-cache-control.js
Line 15 in 9dd48f9
Ghost Version
5.108.2
Node.js Version
20.18.2
How did you install Ghost?
Ubuntu 20.04.6 LTS
Database type
MySQL 8
Browser & OS version
No response
Relevant log / error output
Code of Conduct
The text was updated successfully, but these errors were encountered: