sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.87k stars 136 forks source link

Allow Page Caching #226

Closed ankitjain28may closed 8 years ago

sintaxi commented 8 years ago

I can only presume you are requesting a different caching strategy then surge currently gives you however I'd like to talk you off this ledge. As it stands surge provides a caching algorithm that ensures the same file is never distributed to the same client more than once per year as well as never displays a stale file, EVER.

If you are looking for a more aggressive caching strategy we strongly suggest using an approach that does not have a dependency on a persistent network connection. This can be done with either a service worker or in some (but more limited) circumstances app cache manifest could work for you.

ankitjain28may commented 8 years ago

Exactly!

kennethormandy commented 8 years ago

Just for future reference if anyone stumbles across this:

ankitjain28may commented 8 years ago

Ok