Welcome Guest, Not a member yet? Register   Sign In
Page not getting refreshed until I Manually refresh browser
#8

[eluser]jaswinder_rana[/eluser]
Its strange but I added following headers in my header file and it's working fine now

Code:
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

I checked the Response Headers and it came up with following:
Code:
Date: Thu, 01 Jan 2009 20:06:56 GMT
Server: Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.5 mod_jk/1.2.26 mod_auth_sspi/1.0.4
X-Powered-By: PHP/5.2.5
Content-Encoding: gzip
Vary: Accept-Encoding
Cache-Control: max-age=86400
Expires: Fri, 02 Jan 2009 20:06:56 GMT
Content-Length: 1266
Content-Type: text/html

200 OK

Apparently, it's asking browser to cache those results (Changed after I set headers). Are these set through CI?

I couldn't find the code anywhere so can it be my default server behavior?


Messages In This Thread
Page not getting refreshed until I Manually refresh browser - by El Forum - 01-01-2009, 02:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB