Mojolicious::Plugin::AppCacheManifest - Offline web application manifest support for Mojolicious
# Mojolicious $self->plugin( "AppCacheManifest" ); $self->plugin( "AppCacheManifest" => { extension => "manifest" } ); $self->plugin( "AppCacheManifest" => { extension => [qw[ appcache manifest mf ]] } ); $self->plugin( "AppCacheManifest" => { timeout => 60 * 5 } ); # Mojolicious::Lite plugin "AppCacheManifest"; plugin "AppCacheManifest" => { extension => "manifest" }; plugin "AppCacheManifest" => { extension => [qw[ appcache manifest mf ]] }; plugin "AppCacheManifest" => { timeout => 60 * 5 };
This plugin manages manifest delivery for Offline Web applications. It read manifests, checks modification of contained files that exist in static directories, and returns a clean manifest with only one comment containing a timestamp to allow for cache invalidation on changes.
# Mojolicious::Lite plugin "AppCacheManifest" => { extension => "manifest" }; plugin "AppCacheManifest" => { extension => [qw[ appcache manifest mf ]] };
Manifest file extension, allows array references to pass multiple extensions and defaults to appcache.
appcache
# Mojolicious::Lite plugin "AppCacheManifest" => { timeout => 60 * 5 };
Cache timeout after which all files in the cache section of manifests get checked again, defaults to 0 seconds (disabled).
0
Note: Manifests are always tested and trigger a full check when they change.
Accessor for "timeout", see above.
Specification for Offline Web applications.
HTML5::Manifest has a different approach by generating the manifest programmatically.
Simon Bertrang, <janus@cpan.org>
Copyright (C) 2014 by Simon Bertrang
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mojolicious::Plugin::AppCacheManifest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::AppCacheManifest
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::AppCacheManifest
For more information on module installation, please visit the detailed CPAN module installation guide.