Add cache control headers and redirects for better page loading and caching behavior
This commit is contained in:
parent
9ea14026d9
commit
1b7b29526e
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
Cache-Control: no-cache, no-store, must-revalidate
|
||||||
|
Pragma: no-cache
|
||||||
|
Expires: 0
|
||||||
|
|
||||||
|
# Ensure assets like CSS and JS are allowed to be cached but not for too long
|
||||||
|
*.css
|
||||||
|
Cache-Control: public, max-age=3600
|
||||||
|
*.js
|
||||||
|
Cache-Control: public, max-age=3600
|
||||||
|
|
||||||
|
# Allow caching for static resources like images
|
||||||
|
/images/*
|
||||||
|
Cache-Control: public, max-age=86400
|
||||||
|
|
||||||
|
# Don't cache PDF files to ensure they're always up to date
|
||||||
|
*.pdf
|
||||||
|
Cache-Control: no-cache, no-store, must-revalidate
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Redirect default Netlify subdomain to primary domain
|
||||||
|
https://argobox.pages.dev/* https://argobox.com/:splat 301!
|
||||||
|
|
||||||
|
# Handle trailing slashes consistently
|
||||||
|
/*/ /:splat 301
|
Loading…
Reference in New Issue