In order to ensure that website attendees have a smooth experience browsing the website we want to leverage Fastly caching. We also want the ability to have some automatic cache purging but also the ability to purge the cache manually.
Changes
Controls headers for Fastly and server caching
Adds FastlyService singleton used for purging api requests
Adds Surrogate-Key response header for website/event scoped cache
purging
Adds ability to change caching setting to off/automatic/manual
Adds purging callbacks to website to purge automatically when updated
or touched through pages or sponsors
Adds manual purge button on the Website edit page
Adds when_fresh call to add Last-Modified header based on
website#purged_at
Reason for Change
In order to ensure that website attendees have a smooth experience browsing the website we want to leverage Fastly caching. We also want the ability to have some automatic cache purging but also the ability to purge the cache manually.
Changes
Configure Fast.ly