Skip to content

Commit 6c586c7

Browse files
Mohitsharma44claude
andcommitted
chore: reduce cache TTLs — 2min HTML, 30min assets
Site gets frequent updates — previous TTLs (5min HTML, 24h assets) were too aggressive. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4c8fe62 commit 6c586c7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
--exclude "infra/*" \
4545
--exclude "*.md" \
4646
--exclude ".gitignore" \
47-
--cache-control "public, max-age=86400"
47+
--cache-control "public, max-age=1800"
4848
4949
- name: Set short cache on HTML files
5050
run: |
@@ -53,7 +53,7 @@ jobs:
5353
--exclude "*" \
5454
--include "*.html" \
5555
--metadata-directive REPLACE \
56-
--cache-control "public, max-age=300" \
56+
--cache-control "public, max-age=120" \
5757
--content-type "text/html; charset=utf-8"
5858
5959
- name: Invalidate CloudFront cache

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ When changes are pushed to `master`:
2525
2. **Cache clear** — CloudFront CDN cache is invalidated
2626
3. **Live** — Changes are available on all domains (cuspuo.org, cuspuo.com, and their www variants)
2727

28-
HTML files are cached for 5 minutes; other assets (images, CSS, JS) are cached for 24 hours.
28+
HTML files are cached for 2 minutes; other assets (images, CSS, JS) are cached for 30 minutes.
2929

3030
## File Structure
3131

0 commit comments

Comments
 (0)