Re: [Webtek-devel] no-cache
Status: Alpha
Brought to you by:
prozessor13
From: max d. <pro...@gm...> - 2008-07-02 15:55:28
|
no.. no such mechanism is implemented (because i never run into this problem, although i alreay thouth about this problem ), but it should be very easy to implement it. if this problem is online in one page you can set the request-header in the corresponding action: sub index { ... response->header('Cache-Control' => 'no-cache'); response->header('Pragma' => 'no-cache'); } or do it system-wide: event->register( 'name' => 'request-prepare-end', 'method' => sub { response->header('Cache-Control' => 'no-cache'); response->header('Pragma' => 'no-cache'); } ); On 02.07.2008, at 17:40, Adrian Smith wrote: > Hi, > > What is the correct way to prevent the browser caching pages in > WebTek? > > I mean I am no expert about how to prevent caching in general - but > e.g. taking a look at another project, the following HTTP headers > are printed in the response: > > print "Expires: Mon, 26 Jul 1997 05:00:00 GMT\n"; > print "Cache-Control: no-cache\n"; > print "Pragma: no-cache\n"; > > Is there any facility for these headers to automatically get added > to the response using the WebTek::Engine::ModPerl2 engine? > > My specific problem: User sees (in Internet Explorer) the login > screen (URL "/"). The user logs in. The user types URL "/" again > into the URL bar. The user sees the login screen again. > > Correct behaviour: A logged-in user navigates to "/" then a redirect > to the logged-in start page. Pressing Refresh in IE yields this > behaviour. On Firefox this works without having to press refresh. > > Thanks, Adrian > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08_______________________________________________ > Webtek-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webtek-devel |