Are you planning to cache these file too ? This might lead to cache flooding.
We are planning on caching it.. And you raised a good point of cache flooding.. We need to address that too in some manner. But do you know if these 3 things can be done at CQ level. Obivously this will all be done at design time..
1 person found this helpful
you should be able to use the RequestRewriter to alter any links served by CQ on a page and then implement the desired output. You may want to consider using a selector or a suffix for the additional md5hash you are passing and instead of using the md5hash it may be suficcient to use the timestamp of the resource instead.
It would also be nice if the clientlibrary manager is extended to support such functionality - that way css and js files could be served with a 'cache forever cache-control header and would never have to be fetched again by a customer that visits you site.
Some info about the RequestRewriter can be found here: http://www.cqblueprints.com/xwiki/bin/view/Blue+Prints/Serving+Static+Assets+from+an+Alter nate+URL
Thanks reuser1 !!!
I will look into the RequestRewriter and will let you know if I have questions..