From 3c282637f7e54256edc4654c32207de5c4ffd6fc Mon Sep 17 00:00:00 2001 From: GeekCorner <45696571+GeekCornerGH@users.noreply.github.com> Date: Wed, 20 May 2026 18:03:26 +0200 Subject: [PATCH] chore: Add proper caching strategy for Cloudflare Pages --- static/_headers | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 static/_headers diff --git a/static/_headers b/static/_headers new file mode 100644 index 0000000..1b9b1a0 --- /dev/null +++ b/static/_headers @@ -0,0 +1,26 @@ +/* + Cache-Control: public, max-age=0, must-revalidate + +/*.js + Cache-Control: public, max-age=2592000, immutable + +/*.css + Cache-Control: public, max-age=2592000, immutable + +/*.png + Cache-Control: public, max-age=86400 + +/*.jpg + Cache-Control: public, max-age=86400 + +/*.jpeg + Cache-Control: public, max-age=86400 + +/*.gif + Cache-Control: public, max-age=86400 + +/*.svg + Cache-Control: public, max-age=86400 + +/*.webp + Cache-Control: public, max-age=86400 \ No newline at end of file