Skip to content

Commit

Permalink
perf(cache): Update cache rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Mar 17, 2023
1 parent b27aecd commit 56bcbdd
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions static/_headers
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Set a specific caching policy for webpack files i.e. /_nuxt/...
# Prevent the dev URL from displaying in search engines
https://:project.pages.dev/*
X-Robots-Tag: noindex

# Set the default caching rules
/*
Cache-Control: max-age=0, must-revalidate, proxy-revalidate

/_nuxt/*
Cache-Control: max-age=315360000, must-revalidate, proxy-revalidate
! Cache-Control
Cache-Control: max-age=31536000, must-revalidate, proxy-revalidate

/favicon.ico
! Cache-Control
Cache-Control: max-age=2592000, must-revalidate, proxy-revalidate

/*.html
! Cache-Control
Cache-Control: max-age=86400, must-revalidate, proxy-revalidate

0 comments on commit 56bcbdd

Please sign in to comment.