Troglodyne-Internet-Widgets / tCMS

A Perl CMS with a focus on multiple media types, and flexible data storage backends
Other
2 stars 6 forks source link

Investigate Plack::App::MCSS instead of my existing static file code #231

Closed teodesian closed 2 years ago

teodesian commented 2 years ago

https://metacpan.org/pod/Plack::App::MCCS

teodesian commented 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.

teodesian commented 2 years ago

This will also integrate well with the idea of proxying & round-robining between CDN destinations for each file

teodesian commented 2 years ago

Also need to support 'vary' header: https://www.fastly.com/blog/best-practices-using-vary-header

teodesian commented 2 years ago

good ideas. Ultimately will have to do my own thing for these.