Skip to content

Commit

Permalink
do not cache _header
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Nov 7, 2024
1 parent 31857ce commit bcc5d4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +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'`" > dist/_header
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

cat dist/_header

0 comments on commit bcc5d4e

Please sign in to comment.