Tuesday, June 29, 2010

Re: GWT htaccess to disable cache

On 06/29/2010 04:52 PM, Jeff Chimene wrote:
> On 06/29/2010 04:33 PM, Jeff Chimene wrote:
>> On 06/29/2010 03:54 PM, Thomas Broyer wrote:
>>>
>>>
>>> On 30 juin, 00:40, Jeff Chimene <jchim...@gmail.com> wrote:
>>>> Hi:
>>>>
>>>> I searched the group for a GWT-specific .htaccess fragment that disables
>>>> caching for *nocache.js I couldn't find one.
>>>
>>> Probably because it's in the doc:
>>> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
>>
>> OK. I got it working now.
>>
>
> No, I don't have it working yet. The difference seems to be that after a
> compile/deploy sequence, w/o clearing the cache, w/ the .htaccess from
> the docs, I see the following status sequence for the nocache
>
> 200 -> (reload) -> 304 -> (reload) -> 304...
>
> Using the other .htaccess, I see the following status sequence for the
> nocache after a compile/deploy sequence:
>
> 200 -> (reload) -> 200 -> (reload) -> 200...
>
> IOW, does the server/browser cache management "do what I mean" when I
> redeploy the app on the server? I want to get past the "please clear
> your browser cache and reload" issue after deploying updates to the server.

response headers using "ExpiresDefault "access""

0) compile
1) deploy

2) reload
response headers after first load after deploy
status: 200
----------------------------------------------
Date: Tue, 29 Jun 2010 23:59:01 GMT
Server: Apache/2.2.15 (Debian)
Last-Modified: Tue, 29 Jun 2010 23:58:32 GMT
Etag: "2e800b-105f-48a3403b57a00"
Accept-Ranges: bytes
Cache-Control: max-age=0
Expires: Tue, 29 Jun 2010 23:59:01 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 1806
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: application/javascript

3) reload
response headers after 2nd load after deploy
status: 304
----------------------------------------------
Date: Wed, 30 Jun 2010 00:01:52 GMT
Server: Apache/2.2.15 (Debian)
Connection: Keep-Alive
Keep-Alive: timeout=15, max=99
Etag: "2e800b-105f-48a3403b57a00"
Expires: Wed, 30 Jun 2010 00:01:52 GMT
Cache-Control: max-age=0
Vary: Accept-Encoding

===============================================
===============================================
===============================================

response headers NOT using "ExpiresDefault "access""
0) compile
1) deploy

2) reload
response headers after first load after deploy
status: 200
----------------------------------------------
Date: Wed, 30 Jun 2010 00:07:23 GMT
Server: Apache/2.2.15 (Debian)
Last-Modified: Wed, 30 Jun 2010 00:06:23 GMT
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Content-Length: 1805
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: application/javascript

3) reload
response headers after 2nd load after deploy
status: 200
----------------------------------------------
Date: Wed, 30 Jun 2010 00:09:12 GMT
Server: Apache/2.2.15 (Debian)
Last-Modified: Wed, 30 Jun 2010 00:06:23 GMT
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Content-Length: 1805
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: application/javascript

--
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