<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7141?redirect=false" rel="nofollow">SPR-7141</a></strong> and commented</p>
<p dir="auto">As a user, I would like support for resource versioning so it is possible to get the benefits of caching with the ability to refresh changes.</p>
<p dir="auto">Implementation option <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="586320" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/spring-projects/spring-framework/pull/1/hovercard" href="https://github.com/spring-projects/spring-framework/pull/1">#1</a></p>
<hr>
<p dir="auto">Automatic versioning with file timestamps e.g. /resources/main.123456789.css</p>
<p dir="auto">Implementation option <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1575150" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/spring-projects/spring-framework/pull/2/hovercard" href="https://github.com/spring-projects/spring-framework/pull/2">#2</a></p>
<hr>
<p dir="auto">Manual versioning with version number e.g. /resources/version-1.0.0/main.css</p>
<p dir="auto">Both options would require ResourceHttpRequestHandler to strip out the version number from the request URI to obtain the "real" resource path.  In addition, a view helper function or tag would be needed to generate versioned URLs e.g. &lt;spring:resource name="main.css"/&gt; might generate <a href="http://localhost:8080/app/resources/main.123456789.css" rel="nofollow">http://localhost:8080/app/resources/main.123456789.css</a>.</p>
<p dir="auto">Resources:<br>
<a href="http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files" rel="nofollow">http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files</a><br>
<a href="http://particletree.com/notebook/automatically-version-your-css-and-javascript-files/" rel="nofollow">http://particletree.com/notebook/automatically-version-your-css-and-javascript-files/</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.2</p>
<p dir="auto">This issue is a sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398106403" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12058" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12058/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12058">#12058</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398108774" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12401" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12401/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12401">#12401</a> Support for generating links to static resources such as CSS and JS files hosted at a CDN such as Amazon Cloudfront</li>
</ul>
<p dir="auto">2 votes, 4 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7745?redirect=false" rel="nofollow">SPR-7745</a></strong> and commented</p>
<p dir="auto">Would be nice extension of the resource handler work in Spring 3 in the cases where the resource handling is performed off-site with the help of a CDN such as Amazon Cloudfront.  The best practice in this environment is to upload two versions of each static resource: a uncompressed version, and a compressed version.  In development you would want to work with a local, uncompressed version, but in production you'd expect the gzipped version to be used and be served from the CDN.</p>
<p dir="auto">See: <a href="http://internetmarketingbyme.com/74/gzip-compression-using-amazon-s3-cloudfront-cdn/" rel="nofollow">http://internetmarketingbyme.com/74/gzip-compression-using-amazon-s3-cloudfront-cdn/</a><br>
See: <a href="http://lanyrd.com/blog/2010/ical" rel="nofollow">http://lanyrd.com/blog/2010/ical</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398168938" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/16488" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/16488/hovercard" href="https://github.com/spring-projects/spring-framework/issues/16488">#16488</a> Create ResourceResolver for changing URL domain (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398104794" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11800" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11800/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11800">#11800</a> Add support for versioning resources</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398168938" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/16488" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/16488/hovercard" href="https://github.com/spring-projects/spring-framework/issues/16488">#16488</a> Create ResourceResolver for changing URL domain</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p>