mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
Cache assets longer
This commit is contained in:
parent
53b373dd25
commit
44a352217a
@ -67,6 +67,7 @@ if [ -z "$NO_UPLOAD" ]; then
|
||||
echo "Overriding javascript mime-types..."
|
||||
s3cmd \
|
||||
--mime-type="application/javascript" \
|
||||
--add-header="Cache-Control: max-age=31536000" \
|
||||
--exclude "*" \
|
||||
--include "*.js" \
|
||||
--recursive \
|
||||
@ -75,6 +76,7 @@ if [ -z "$NO_UPLOAD" ]; then
|
||||
echo "Overriding css mime-types..."
|
||||
s3cmd \
|
||||
--mime-type="text/css" \
|
||||
--add-header="Cache-Control: max-age=31536000" \
|
||||
--exclude "*" \
|
||||
--include "*.css" \
|
||||
--recursive \
|
||||
@ -83,11 +85,11 @@ if [ -z "$NO_UPLOAD" ]; then
|
||||
echo "Overriding svg mime-types..."
|
||||
s3cmd \
|
||||
--mime-type="image/svg+xml" \
|
||||
--add-header="Cache-Control: max-age=31536000" \
|
||||
--exclude "*" \
|
||||
--include "*.svg" \
|
||||
--recursive \
|
||||
modify "s3://hc-sites/$PROJECT/latest/"
|
||||
|
||||
fi
|
||||
|
||||
# Perform a soft-purge of the surrogate key.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user