Tuesday, June 29, 2010

GWT htaccess to disable cache


I searched the group for a GWT-specific .htaccess fragment that disables
caching for *nocache.js I couldn't find one.

Here follows a sample. I figure we can move on to something useful after
tearing it to pieces.

I'm omitting the entry for *cache* files; perhaps most HTTP servers are
already setting cache-enabling headers for those files.

<FilesMatch "\.nocache\.">
FileETag None
<IfModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store,
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment