Skip to content

Instantly share code, notes, and snippets.

@dannyvankooten
Created June 12, 2026 05:53
Show Gist options
  • Select an option

  • Save dannyvankooten/fbf58bffde335cd63d2aa3bcf5006467 to your computer and use it in GitHub Desktop.

Select an option

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.
<?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