Welcome Guest, Not a member yet? Register   Sign In
Error Page Because Proxy
#1

[eluser]Ferli Juli Herlambang[/eluser]
Dear All Codeigniter forum member,

I need your help master Ci Smile

Why my website like can't refresh when I redirect and I use proxy ?

When I dont use proxy nothing Problem find.
How to handle this problem ?

Thanks a lot Smile
#2

[eluser]WanWizard[/eluser]
What do you mean with "can't refresh"?
You see an old version of the page?
#3

[eluser]Ferli Juli Herlambang[/eluser]
Yes.The example, when I had completed the process of editing content and return to the page view. data look like has not changed. but when I click F5 or refresh the data that will change.
#4

[eluser]WanWizard[/eluser]
You can disable page caching using http headers.
Code:
// make sure the page isn't cached
$this->output->set_header("Cache-Control: no-cache, must-revalidate");

Note that this will disable caching by the browser as well.

If this still doesn't work, you can disable all caching completely by using
Code:
// make sure the page isn't cached
$this->output->set_header("Cache-Control: no-cache, no-store, must-revalidate");

This is a very good explaination about caching.




Theme © iAndrew 2016 - Forum software by © MyBB