Compare commits

...
1 Commits
Author SHA1 Message Date
patrick eb9006dc19 fix: prevent resume.pdf from being cached immutably
Generate a build and push to Cloudflare Pages / Build and Deploy to Cloudflare Pages (push) Successful in 1m24s
2026-08-03 00:24:05 -04:00
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -10,6 +10,11 @@
/fonts2/* /fonts2/*
Cache-Control: public, max-age=31536000, immutable Cache-Control: public, max-age=31536000, immutable
# resume.pdf changes under a stable filename, so it must revalidate
# (unlike the hashed/never-changing assets below).
/static/resume.pdf
Cache-Control: public, max-age=3600, must-revalidate
/static/* /static/*
Cache-Control: public, max-age=31536000, immutable Cache-Control: public, max-age=31536000, immutable
+2 -2
View File
@@ -156,7 +156,7 @@
</div> </div>
{/each} {/each}
<a <a
href="/static/resume.pdf" href="/static/resume.pdf?v=2026-08"
download download
class="flex items-center gap-2 rounded-full border border-foreground/20 px-4 py-1.5 text-sm font-medium transition-all duration-200 hover:border-foreground/40 hover:bg-foreground/5" class="flex items-center gap-2 rounded-full border border-foreground/20 px-4 py-1.5 text-sm font-medium transition-all duration-200 hover:border-foreground/40 hover:bg-foreground/5"
> >
@@ -211,7 +211,7 @@
transition:slide={{ delay: NAV_LINKS.length * 50, duration: 200 }} transition:slide={{ delay: NAV_LINKS.length * 50, duration: 200 }}
> >
<a <a
href="/static/resume.pdf" href="/static/resume.pdf?v=2026-08"
download download
onclick={closeMobileMenu} onclick={closeMobileMenu}
class="inline-flex items-center gap-2 rounded-full border border-foreground/20 px-5 py-2 text-lg font-bold font-custom transition-all duration-200 hover:border-foreground/40 hover:bg-foreground/5" class="inline-flex items-center gap-2 rounded-full border border-foreground/20 px-5 py-2 text-lg font-bold font-custom transition-all duration-200 hover:border-foreground/40 hover:bg-foreground/5"