r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Will
18-Aug-2009
[5455]
rsp pages should not be cached by default by any browser. Do you 
have firebug in FF can you look at the header fo the response an 
see if there is any difference between the two requests? wireshark 
or tcpflow can be used to look at headers as well
amacleod
19-Aug-2009
[5456]
I was having similar cashing problems with Chrome...I could not getr 
it to display a changed/updated rsp page. I had to close out.
Graham
19-Aug-2009
[5457x2]
interesting
If this only occurs with Chrome and RSP ... maybe there is something 
that can be done.
Sunanda
19-Aug-2009
[5459]
Google Chrome has some badly broken logic when it comes to obeying 
cache-control headers.
Graham
19-Aug-2009
[5460]
Got a link to this ?
Sunanda
19-Aug-2009
[5461]
Here's someone else banging their head against chrome's caching logic:

http://stackoverflow.com/questions/559984/getting-confused-about-expires-headers-when-testing-in-chrome
Graham
19-Aug-2009
[5462x2]
That appears to be saying that Chrome is not caching ....
here the problem appears to be that Chrome is heavily caching.
Sunanda
19-Aug-2009
[5464]
Lots of other people seeing overheavy  Chrome caching, eg:

http://www.google.com/support/forum/p/Chrome/thread?tid=77a9194da602bc00&hl=en
Graham
19-Aug-2009
[5465x7]
I've created a youtube video showing what is happening http://www.youtube.com/watch?v=ANgSrOuDncE
I'm using BB FlashBack Express 2 because it can upload directly to 
youtube ..and it seems to be free :)
Good idea there .. I'll try an incognito window to see if that helps.
Sadly no .. it does actually create the document the first time, 
but then brings up the same document again the second time.   So, 
basically the same behavior as cognito
I think I may be able to get around this issue by tagging the request 
with a dummy time parameter.
That way chrome will not think it's the same idempotent request
My server traces show that Chrome is not actually visiting the pages 
...
Dockimbel
19-Aug-2009
[5472x2]
Try by setting a different ETag header for each document: response/set-header 
'Etag checksum document
You can use a timestamp or doc ID for the ETag value, it just has 
to be unique for each resource.
Graham
19-Aug-2009
[5474]
in the url??
Dockimbel
19-Aug-2009
[5475x2]
Nope, in the RSP script.
http://en.wikipedia.org/wiki/HTTP_ETag
Will
19-Aug-2009
[5477]
Graham, can you paste here the response headers of the first request 
please
Graham
19-Aug-2009
[5478x5]
well changing the url by putting a timestamp fixes the problem partially.
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Wed, 19 Aug 2009 07:41:04 GMT
Expires: Wed, 19 Aug 2009 07:41:04 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
Server: GFE/2.0
Via: 1.1 bc3
Content-Length: 0
Connection: Keep-Alive
Set-Cookie: cookies here ... 

Set-Cookie: user=; Expires=Tue, 18-Aug-2009 07:41:04 GMT; Path=/; 
HttpOnly

Set-Cookie: login=; Expires=Tue, 18-Aug-2009 07:41:04 GMT; Path=/; 
HttpOnly
Reading about etags now ...
It's not the document that needs to send back the etag as it never 
even gets that far.
So, perhaps I need to set the etag in the page that lists links?
Will
19-Aug-2009
[5483]
why do u have Content-Length: 0 ?
this is not valid Set-Cookie: cookies here ...
Graham
19-Aug-2009
[5484x2]
I scrubbed the cookies from the response
this is returned by googledocs
Will
19-Aug-2009
[5486]
are u reverse proxying ?
Graham
19-Aug-2009
[5487x2]
no proxies
made the etag settings ... not helping so going to do a wireshark 
trace to see if I am setting it
Will
19-Aug-2009
[5489]
what if you add
response/set-header 'Expires "-1"
Graham
19-Aug-2009
[5490]
it's caching the whole page ... so it won't see the etags
Will
19-Aug-2009
[5491x2]
headers you pasted are not coming from cheyenne but from google server, 
you can't control them
just to understand, you generate a file and u upload to googledocs, 
then requests it from google server?
Graham
19-Aug-2009
[5493x5]
frustrating .. can't get a trace
Yes, that's correct.
but chrome is not executing the rsp script ... as far as I can see.
I think I'll just stick with putting a time stamp on each request 
to foil the cache
Or just stick with FF / IE.
Will
19-Aug-2009
[5498x2]
then this has nothing to do with cheyenne, add something like
join %? checksum form now/precise ad the end of requested url
if it is the rsp script that doesnt get executed , please paste headers 
from rsp response
Graham
19-Aug-2009
[5500x2]
?t= url-encode form now/time/precise
which rsp response?
Will
19-Aug-2009
[5502]
you said "but chrome is not executing the rsp script ... as far as 
I can see."
Graham
19-Aug-2009
[5503]
yes, I put a ?? in the script and it doesn't log.
Will
19-Aug-2009
[5504]
so that is the rsp you request that generate the file and upload 
it to google