Thanks, for your ans Martin Westin & Marcelo Andrade.
On Sep 14, 1:13 pm, Martin Westin <[email protected]> wrote: > I am sure Safari does cache the page for you. My feeling is that you > can't fix this with a header. My feeling is that Safari has this > "feature" for some kinds of "back-clicking" no matter what you do. > Possibly it is to aid javascript-heavy sites. > > If I click away now, in the middle of typing this post, I can click > back and still have my text in this ajax-loaded field on the page. > Neither the field nor the text were there when the page loaded. That > is not how FF or any other browser works afaik. > > I guess the old rule still applies. Back-buttons are for websites... > not applications. :) > (try clicking back in gmail for example) > > /Martin > > On Sep 13, 7:33 am, p_tucky <[email protected]> wrote: > > > Please test on FF3.5, IE7+ , and Safari4 > > >http://perhabs.com/cake_test > > > user: test > > pass: test > > > please look at display current time under login button. > > After login then click "back button" then see display time Firefox and > > IE will show you new time but Safari still display cache time. > > > That's why I mention Safari still cache. > > > Thanks > > > On Sep 11, 2:03 pm, Martin Westin <[email protected]> wrote: > > > > I am not sure that is a cache problem or anything you can fix. Are you > > > sure > > > > I use Safari 4 all the time and I am under the impression that the > > > browser sometimes doesn't do any request at all when using the back > > > button. It simply re-displays what it a few moments ago. I have not > > > checked if the browser technically does a request or not. It is just a > > > feeling I get. > > > > /Martin > > > > On Sep 11, 6:13 am, p_tucky <[email protected]> wrote: > > > > > Hi, I have cache problem with safari 4. > > > > Any one have problem like me? > > > > > I’ve tried with this code but does not work. It take me to the > > > > previous page and have still show the text on form. > > > > > function beforeFilter() > > > > { > > > > > if($this->action == ‘login’) { > > > > $this->disableCache(); > > > > } > > > > > Header( “Last-Modified: ” . gmdate( “D, j M Y H:i:s” ) . ” GMT” ); > > > > Header( “Expires: ” . gmdate( “D, j M Y H:i:s”, time() ) . ” > > > > GMT” ); > > > > Header( “Cache-Control: no-store, no-cache, must-revalidate” ); > > > > > } > > > > > FF and IE both don’t have any problem, when click “back button” and no > > > > cache. > > > > Safari 4 it seem still have cache when click “back button”. > > > > > Any solution please advise. > > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
