You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The page loads subresources like https://iplayif.com/dist/web/bocfel.wasm with an unversioned URL, and it's set to Cache-Control: max-age=600, five minutes.
Instead, we should refer to subresources as bocfel.wasm?lastmod=#### and they should return a far-future max-age=31536000, one year
jquery.min.js
web.js
web.css
iosevka-extended.woff2
iosevka-extendedbold.woff2
bocfel.js
bocfel.wasm
The text was updated successfully, but these errors were encountered:
I'm on board with this. For the files in dist/ I'm currently just telling nginx to proxy them to the Github CDN. It would be great if I can detect the lastmod query within nginx and set the max-age, but if necessary we could shift it to the Node app instead.
dfabulich
added a commit
to dfabulich/asyncglk
that referenced
this issue
Jan 23, 2025
Due to #176, the runtime size of https://iplayif.com/?story=https%3A%2F%2Fifarchive.org%2Fif-archive%2Fgames%2Fzcode%2FLostPig.z8 has increased considerably, so it's more important that we get the caching rules exactly right, like in iftechfoundation/ifarchive-unbox#68
The page loads subresources like
https://iplayif.com/dist/web/bocfel.wasm
with an unversioned URL, and it's set toCache-Control: max-age=600
, five minutes.Instead, we should refer to subresources as
bocfel.wasm?lastmod=####
and they should return a far-futuremax-age=31536000
, one yearThe text was updated successfully, but these errors were encountered: