Re: OT static resources, cache control, and versioning

2011-02-11 Thread Jordi Fernández
You can reference every static content with: /js/site.js?version= If using Maven or Ant, in the building process generate a timestamp and substitute it wherever applicable. On Thu, Feb 10, 2011 at 3:56 PM, Greg Lindholm wrote: > I'm trying to find out what are the "Best Practices" and if there

Re: OT static resources, cache control, and versioning

2011-02-11 Thread Maurizio Cucchiara
I remember I wrote a simple filter coupled with a *jsp* (not a struts) tag library. As far as I can remember the tag library worked as resource assembler for instance: So in this specific case the tag library combines this two file in just one and generates a digest based on the output c

OT static resources, cache control, and versioning

2011-02-10 Thread Greg Lindholm
I'm trying to find out what are the "Best Practices" and if there are any utilities available to assist with versioning of static resources and cache-control. I'm working on an application (written with Struts 2) that uses a filter to apply cache-control headers to the static resources, javascript