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
Generate a build and push to Cloudflare Pages / Build and Deploy to Cloudflare Pages (push) Successful in 1m24s
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user