On Thu, 2006-05-11 at 02:13 -0700, PythonistL wrote: > Is there a way how to prevent a page from being cached? > I use > response= HttpResponseRedirect("/ChangeProductList/") > response['Pragma'] = "no cache" > response['Cache-Control'] = "no-cache,must-revalidate" > response['Pragma'] = "no cache" > response['Expires'] = "Wed, 11 Jan 2006 05:00:00 GMT" > return response > > > but when I use a sniffer to check HTTP communication I can not see any > Expires > > The header from the sniffer looks like this only > > GET http://www.adomain.cz/ChangeProductList/ HTTP/1.0 > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > application/vnd.ms-excel, application/vnd.ms-powerpoint, > application/msword, application/x-shockwave-flash, application/x-icq, > */* > Referer: http://www.obchodujte.cz/ChangeProduct/17/ > Accept-Language: en-us > Proxy-Connection: Keep-Alive > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > Host: www.obchodujte.cz > Pragma: no-cache > Cookie: sessionid=f6a4320bbcc80c09b1027ee2522063c2; > sessionid=f6a4320bbcc80c09b1027ee2522063c2
That looks like you have just captured the HTTP request. You need to capture the response. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---