mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Merge pull request #317 from oceanprotocol/feature/cache-headers
Fix cache-control headers
This commit is contained in:
commit
185fb563c5
@ -13,6 +13,15 @@ set -e;
|
|||||||
|
|
||||||
function s3sync {
|
function s3sync {
|
||||||
aws s3 sync ./public s3://"$1" \
|
aws s3 sync ./public s3://"$1" \
|
||||||
|
--include "*" \
|
||||||
|
--exclude "*.html" \
|
||||||
|
--exclude "sw.js" \
|
||||||
|
--exclude "*page-data.json" \
|
||||||
|
--exclude "chunk-map.json" \
|
||||||
|
--exclude "sitemap.xml" \
|
||||||
|
--exclude ".iconstats.json" \
|
||||||
|
--exclude "humans.txt" \
|
||||||
|
--exclude "robots.txt" \
|
||||||
--cache-control public,max-age=31536000,immutable \
|
--cache-control public,max-age=31536000,immutable \
|
||||||
--delete \
|
--delete \
|
||||||
--acl public-read
|
--acl public-read
|
||||||
@ -21,9 +30,11 @@ function s3sync {
|
|||||||
--exclude "*" \
|
--exclude "*" \
|
||||||
--include "*.html" \
|
--include "*.html" \
|
||||||
--include "sw.js" \
|
--include "sw.js" \
|
||||||
|
--include "*page-data.json" \
|
||||||
--include "chunk-map.json" \
|
--include "chunk-map.json" \
|
||||||
--include "sitemap.xml" \
|
--include "sitemap.xml" \
|
||||||
--include ".iconstats.json" \
|
--include ".iconstats.json" \
|
||||||
|
--include "humans.txt" \
|
||||||
--include "robots.txt" \
|
--include "robots.txt" \
|
||||||
--cache-control public,max-age=0,must-revalidate \
|
--cache-control public,max-age=0,must-revalidate \
|
||||||
--delete \
|
--delete \
|
||||||
|
Loading…
Reference in New Issue
Block a user