You're actually right.
Probably cachifest should accept a template in order to generate final file 
name. This will also allow some techniques like re-routing to cdns.
But for now I just followed these recommendations: 
https://developers.google.com/speed/docs/best-practices/caching :

*Don't include a query string in the URL for static resources.*
Most proxies, most notably Squid up through version 3.0, do not cache 
resources with a "?" in their URL even if a Cache-control: public header is 
present in the response. To enable proxy caching for these resources, 
remove query strings from references to static resources, and instead 
encode the parameters into the file names themselves.


понедельник, 8 апреля 2013 г., 0:34:51 UTC+7 пользователь Alexey 
Kupershtokh написал:
>
> It seems that I forgot to post an announce for another module I created 
> recently. I'll just quote its documentation:
>
> This is a command line tool for watching for directory changes. Each time 
> a file is updated in this directory, cachifest assembles an updated 
> manifest.json file which has a map of file renames
>
> cachifest is useful for making efficient http caching with following 
> features:
>
>    1. All static files have far future expiration without revalidation.
>    2. If a static file changed it should be invalidated by composing a 
>    new unique url for it.
>    3. Developers and admins don't need to run any maintenance scripts 
>    after rolling new changes to servers.
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to