Skip to content

Commit

Permalink
fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Nov 8, 2024
1 parent 4e4e2f4 commit a26a979
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
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\n last-modified: `date -u +'%a, %d %b %Y %H:%M:%S GMT'`" > dist/_header
echo "/*\n cache-control: max-age=60\n last-modified: `date -u +'%a, %d %b %Y %H:%M:%S GMT'`" > dist/_headers

cat dist/_header
4 changes: 0 additions & 4 deletions public/_headers

This file was deleted.

0 comments on commit a26a979

Please sign in to comment.