Correct the deploy timing: Pages is cached, not instant
Observed the public URL serving the previous build for ~3.5 minutes after a push. Responses carry x-pages-cache: true and cache-control: max-age=600, and a cache-busting query does not bypass it. The earlier claim of ~15s was wrong. AGENTS.md and deploy.sh now say to check the repo raw file FIRST: if that matches the local build the push landed and only the cache is behind, so don't start changing things.
This commit is contained in:
parent
fbb5f02f49
commit
346d08ad6a
3 changed files with 24 additions and 6 deletions
10
deploy.sh
10
deploy.sh
|
|
@ -27,5 +27,11 @@ echo "==> pushing"
|
|||
git push origin pages
|
||||
|
||||
echo
|
||||
echo "done. live at https://rain.pages.melonbread.xyz/la-li-lu-le-lo/"
|
||||
echo "(Pages usually picks it up within ~15 seconds)"
|
||||
echo "pushed to pages."
|
||||
echo
|
||||
echo "Pages is cached (max-age=600), so the public URL can lag by a few minutes."
|
||||
echo "Check the repo first - if this matches, the push landed and only the cache is behind:"
|
||||
echo " curl -s https://git.melonbread.xyz/rain/la-li-lu-le-lo/raw/branch/pages/index.html | sha256sum"
|
||||
echo " sha256sum index.html"
|
||||
echo "Then the live copy:"
|
||||
echo " curl -sL https://rain.pages.melonbread.xyz/la-li-lu-le-lo/ | sha256sum"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue