Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT like perfect caching for non-GWT resources
    primarykey
    data
    text
    <h1>Perfect Caching</h1> <p><em>Perfect Caching</em> allows the browser to cache resources forever and guarantees that changed resources are propagated immediately to the browser. In GWT this is accomplished by naming a file like the hash code of its content. As this leads to a new file name each time the content of a file changes, the browser can cache these files forever without having to ask the server whether or not there is a new version available. More about perfect caching can be found <a href="http://code.google.com/webtoolkit/doc/2.3/DevGuideCompilingAndDebugging.html#perfect_caching" rel="nofollow">here</a>.</p> <p>As this concept works very well I would like to apply it to all of my non-GWT resources (some JS, CSS and image files).</p> <p>As my build process is Maven based it would be great if there was a plugin which could automatically rename the files according to their hash code and which could adjust all of the references to this file.</p> <h1>Here's an example</h1> <h2>Renaming</h2> <ul> <li>foo.css -> foo_39757cec04498955db62043f7ecfefc2.cache.css </li> <li>logo.png -> logo_35bcdbbabe1944afc75eeeb16f06d1ad.cache.png </li> </ul> <h2>Update references in files</h2> <ul> <li>Replace all occurances of "foo.css" by "foo_39757cec04498955db62043f7ecfefc2.cache.css"</li> <li>Replace all occurances of "logo.png" by "logo_35bcdbbabe1944afc75eeeb16f06d1ad.cache.png"</li> </ul> <p>Does anybody know whether something like that already exists?</p> <p>Many thanks in advance,<br> Michael</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload