On 7/14/07, Feris Thia <[EMAIL PROTECTED]> wrote:
> I think my problem is to have these headers (find in www.php.net/header) :
>
> <?php
> header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
> ?>
>
> Which part of this code can be place in cakephp ?
>
> Regards,
>
> Feris
>
Hi All,

I have solve it by the help of  AD7six & polerin in IRC channel. So I
create a method in app_controller like below:
==============================================================
<?php

class AppController extends Controller {

        function __noCache() {
                header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
                header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in 
the past
        }
}
?>
==============================================================

And then call it in edit action :

==============================================================
function edit($id = null) {
             $this->__noCache();
 .................
==============================================================

And it solved the Opera's client cache problem.

Thank you all for the helps !

Regards,

Feris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to