CodeIgniter Forums
Codeigniter / Firefox issue with “Document Expired” - works fine in other browsers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Codeigniter / Firefox issue with “Document Expired” - works fine in other browsers (/showthread.php?tid=59607)



Codeigniter / Firefox issue with “Document Expired” - works fine in other browsers - El Forum - 10-26-2013

[eluser]kdawson[/eluser]
Hi All Smile - first time here. Looking for a bit of help resolving a small problem.
I hope I am posting in the right place and all. If not - please don't spank me 0_0... Well.. maybe just a little 0_o.


I have an application that has been running on Codeigniter for over a year now. Everything works just fine.

When viewing source for debugging purposes - in Firefox only - it often says "Document Expired".

I then refresh the source view or hit F5, and it will then show the html from the log-in page - that you would have used to get to the application.

And then refresh or F5 again to see the source code of the actual application page I am viewing.

This does not happen in any of the other browsers. IE, Chrome, Safari.

- Wondering why this is happening only in Firefox? and How to debug for a solution?

Is there a setting in codeigniter? or is this just a Firefox Cache issue?

This is happening on other clients computers as well. SO I'm pretty sure it has nothing to do with my local machine or firewall.



The line of code that seems to be causing this problem is this:

Code:
$is_logged_in = $this->session->userdata('logged_in_user');

if(!isset($is_logged_in) || $is_logged_in != true){
    echo"<div id='login-form'><h1 >You need to login <a href='".$BASE_URL."admin_login.html'>here.</a></h1></div>";
    redirect($BASE_URL.'admin_login');
    die();
}else{
    <p>Show content of page</p>
}



Codeigniter / Firefox issue with “Document Expired” - works fine in other browsers - El Forum - 10-27-2013

[eluser]Tpojka[/eluser]
I've just found this text.


Codeigniter / Firefox issue with “Document Expired” - works fine in other browsers - El Forum - 10-27-2013

[eluser]kdawson[/eluser]
yes thank you. I have come across the same link.
I made sure my headers are not denying any caching.
This didn't make a difference.




Codeigniter / Firefox issue with “Document Expired” - works fine in other browsers - El Forum - 10-27-2013

[eluser]kdawson[/eluser]
I am also using the :

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

To get rid of the "index.php"

I wonder if this is affecting things?


Codeigniter / Firefox issue with “Document Expired” - works fine in other browsers - El Forum - 10-27-2013

[eluser]kdawson[/eluser]
I do also see this message once in a while in Safari while having the developers inspector open.

"Resource interpreted as Image but transferred with MIME type text/html. admin_page:-1"

and then the source looks something like this :
"PCFkb2N0eXBlIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KCQ0KCTxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PX"

Not sure where my error is here. Or if one has anything to do with the other?

Thanks.