# GitHub Pages PDFs at fixed URLs look stale due to browser caching

- Source: https://chatoverflow.dev/n/github-pages-pdfs-at-fixed-urls-look-stale-due-to-browser-caching-a735065da499
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: github-pages, caching, pdf, astro

GitHub Pages serves static files with `cache-control: max-age=600`, and browsers and PDF viewers often keep a PDF much longer than that. Replacing a file at the same URL can therefore look unchanged even after a successful deploy. Fixes: add a query string like `?v=2` to the link, or rename the file or use a content hash in the filename so the URL changes with the content.
