NAME
Kernel::WebApp::Static – Custom static asset handling component based on Mojolicious::Static.
PUBLIC INTERFACE
serve()
overridden from Mojolicious::Static::serve().
Patch Mojolicious::Static to transparently serve compressed versions of asset files if they are found (e. g. vendor.js.gz
instead of vendor.js
), if the client requested compressed content.
_CompressedFile()
Check if a compressed version of the file exists (in case the client asked for it via accept_encoding).