Problem with "redirect" and Proxy
Hi! I have the following problem: To serve my site in multiple languages and not to copy the whole page, I want to use a SESSION-Variable. The variable saves the choosen language so I can use it in the whole page. To change the language I'm setting the variable with the new language and I'm making a redirect to the page with "RESPONSE.redirect()". Now the problem is that when there is a Proxy between, the page is served from the proxy without changing the language. The proxie uses the cached page in the old language. When I use the Refresh-Button of the Browser the changing of the language takes effect. Without a proxy it works fine. Does somebody know a possibility to make a refresh to the page to get the content really new from the server and not from the proxie? Bye Steffen
If the proxy is standards compliant you can tell it via response headers not to cache this page/s Set Expires: <some date in the past in http format> Cache-Control: No-Cache (you can do this via the RESPONSE object, ie. REQUEST.RESPONSE.setHeader("Cache-Control", "No-Cache")) I found the following web resources useful: caching tutorial: http://www.mnot.net/cache_docs/ http1.0 http://www.freesoft.org/CIE/RFC/1945/index.htm cheers! peter. On Fri, 26 Apr 2002 sbergmann@weblog.de wrote:
Hi!
I have the following problem:
To serve my site in multiple languages and not to copy the whole page, I want to use a SESSION-Variable. The variable saves the choosen language so I can use it in the whole page. To change the language I'm setting the variable with the new language and I'm making a redirect to the page with "RESPONSE.redirect()". Now the problem is that when there is a Proxy between, the page is served from the proxy without changing the language. The proxie uses the cached page in the old language. When I use the Refresh-Button of the Browser the changing of the language takes effect. Without a proxy it works fine. Does somebody know a possibility to make a refresh to the page to get the content really new from the server and not from the proxie?
Bye
Steffen
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
sbergmann@weblog.de writes:
To serve my site in multiple languages and not to copy the whole page, I want to use a SESSION-Variable. Maybe my "Mirroring Folder" can help you. It provides for language specific subsites with the common infrastructure held in a common shared folder with is mirrored into the language specific folders.
participants (3)
-
Dieter Maurer -
Peter Sabaini -
sbergmannļ¼ weblog.de