Skip to content

Commit

Permalink
caching
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Nov 8, 2024
1 parent 8640a28 commit 4e4e2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ find dist -type f -exec grep -l '<a href=\S* rel="me"' {} \; | xargs sed -i 's|<
find dist -type f -exec grep -l 'script src="/chamber.js/"' {} \; | xargs sed -i 's|script src="/chamber.js/"|script src="/chamber.js"|'
find dist -type f -exec grep -l 'source src="/video.mp4"' {} \; | xargs sed -i 's|source src="/video.mp4"|source src="https://cdn.pixabay.com/video/2021/02/21/65860-515617507_tiny.mp4"|'

echo "/*\n cache-control: max-age=60, stale-while-revalidate=120, stale-if-error=86400\n last-modified: `date -u +'%a, %d %b %Y %H:%M:%S GMT'`\n\n/\n cache-control: max-age=60, stale-while-revalidate=120, stale-if-error=86400\n last-modified: `date -u +'%a, %d %b %Y %H:%M:%S GMT'`\n\n/_header\n cache-control: no-store\n" > dist/_header
echo "/*\n cache-control: max-age=60\n last-modified: `date -u +'%a, %d %b %Y %H:%M:%S GMT'`" > dist/_header

cat dist/_header

0 comments on commit 4e4e2f4

Please sign in to comment.