diff --git a/netlify.toml b/netlify.toml index 6a3dd09..95e6e4c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,35 @@ [[redirects]] -from = "/*" -to = "/index.html" -status = 200 + from = "/*" + to = "/index.html" + status = 200 + +[[headers]] + for = "/*.js" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.css" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.png" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.jpg" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.webp" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.svg" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" +