ID:2700189
 
Applies to:Website
Status: Open

Issue hasn't been assigned a status value.
Can you please enable "always online" option in cloudflare (you can add a rule where it only allows a specific dir, ie: byond.com/download/*" to be cached even when the main byond server is down)

You could probably enable it sitewide, just blacklist the api endpoints.

Why? Because specific CI's break when byond page is down.
better idea: (because always online doesn't cache downloads)

Set a page rule for download/* to enable caching everything (only way cf will cache .zip files) plus enable origin cache control.

Then, return the following cache-control headers webserver side for download/*:

html pages:
public,max-age=60,s-maxage=60,must-revalidate,stale-if-error=259200
.zip files:
public,max-age=3600,s-maxage=2592000,immutable,stale-if-error=2592000,stale-while-revalidate=2592000


This will cache cache the index/html pages for downloads for 60 seconds but allow stale cache to be used if the site errors for up to 3 days, and cache the .zip files client side for 1 hour and cloudflare side for 30 days (you can manually purge the cache in cf if you need to reset this for a botched upload), allowing stale entries to be used for 30 extra days if there is any error.

Lummox you can always pm me on discord if you need help setting this up.