Skip to content

Commit

Permalink
Add cache for static assets (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwrobel committed Dec 28, 2022
1 parent 808c869 commit e17cfea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ layout: null
Referrer-Policy: strict-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

# Default headers for static resources
/assets/*
Cache-Control : public, max-age=3600;
/browserconfig.xml
Cache-Control : public, max-age=3600;
/favicon.ico
Cache-Control : public, max-age=3600;
/manifest.json
Cache-Control : public, max-age=3600;

# Default headers for API resources.
/api*
Access-Control-Allow-Origin: *
Expand Down

0 comments on commit e17cfea

Please sign in to comment.