Saturday, October 9, 2010

Apache Directive to Prevent Cache of GWT nocache.js File

<LocationMatch (.*)nocache\.js$>
   Header Set Cache-Control "max-age=0, no-store"
</LocationMatch>

The Apache directive above will prevent the GWT nocache.js file from being cached. This is critical when you deploy new versions of your GWT apps. If the user does not get the latest version of your app, communication with the server will fail.
Post a Comment