Created
June 12, 2026 05:53
-
-
Save dannyvankooten/fbf58bffde335cd63d2aa3bcf5006467 to your computer and use it in GitHub Desktop.
To test, place this file in your Kinsta site's web root and request it without the logged-in cookie being set. Kinsta will happily cache this response at Cloudflare's edge locations, despite the Cache-Control headers explicitly telling it not to.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header("Expires: Wed, 11 Jan 1984 05:00:00 GMT"); | |
| header("Cache-Control: no-cache, must-revalidate, max-age=0, no-store, private"); // nocache_headers() in WordPress | |
| echo time(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment