Plack::Middleware::StaticShared - concat some static files to one resource
And concatnated resources are provided as like following:
/.shared.js:v1:/js/foolib.js,/js/barlib.js,/js/app.js => concat following: ./static/js/foolib.js, ./static/js/barlib.js, ./static/js/app.js
Plack::Middleware::StaticShared provides resource end point which concat some static files to one resource for reducing http requests.
- cache (required)
A cache object for caching concatnated resource content.
- base (required)
Base directory which concatnating resource located in.
- binds (required)
Definition of concatnated resources.
- verifier (optional)
A subroutine for verifying version string to avoid attacking of cache flooding.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.