Closed teodesian closed 2 years ago
So this won't quite work for what I want, but is a good idea.
I want instead to do the following: Store "static renders" of the statics, e.g. zipped versions of files smaller than 1mb Store converted images to avif Store minified css/js Store static renders of the html
And store eTags in the DB, which will get invalidated when the file changes on disk. We should check for these changes on hup ofc.
This will also integrate well with the idea of proxying & round-robining between CDN destinations for each file
Also need to support 'vary' header: https://www.fastly.com/blog/best-practices-using-vary-header
good ideas. Ultimately will have to do my own thing for these.
https://metacpan.org/pod/Plack::App::MCCS