F5 refresh causes FF to lose images and style sheets
Hi,
I'm developing a web site that seems to show up the following problem. On initial load everything renders fine but if I hit F5 (or I've visited the site previously) then FF seems to lose all reference to the external components, stylesheets and images. If I hit Ctrl F5 then everything reloads OK. I'm assuming as FF (and all other browsers I've tried) can render the screen OK (on Ctrl F5) this must be a bug, but maybe I'm missing something.
Any ideas ?
פתרון נבחר
This does not have to be a bug. It is also possible that Firefox is sending a revalidation request and the server does not send a proper response to that. I would look at the http traffic to see what is really happening. For example this site also has a F5 problem: http://ontwowheels.nl/
Read this answer in context 👍 0כל התגובות (7)
פתרון נבחר
This does not have to be a bug. It is also possible that Firefox is sending a revalidation request and the server does not send a proper response to that. I would look at the http traffic to see what is really happening. For example this site also has a F5 problem: http://ontwowheels.nl/
thanks for your input knorretje, I tried the site you suggested and indeed they do have a F5 problem, but an error message page appears instead of their web page, this would at least give me something to work with but I don't get an error message, my web page shows up, just without external images and stylesheet (if I copy the style definitions to the header of the web page then the page style renders as it should be). Surely a Ctrl F5 would also require the same revalidation request ? And this works fine.
I will check my server is up to the latest version.
A ctrl+F5 would send a normal request so that is not a revalidation request.
OK, thanks for clarifying that for me. Looks like the culprit could be the web server, I'll get it updated as soon as I can, but probably won't be until tomorrow morning as I'm working on the site tonight.
Will update when I've performed the upgrade.
It is also posible that something goes wrong when reading from the cache so simply clearing the cache might help, and normally that is the first thing to do. If your site uses cookies, then clearing all cookies from the site can be helpfull too. I assumed that you have done that already because you are a website developer.
thanks for the additional thoughts, I have tried clearing the cache which works fine as the browser has to then re-fetch the page and so it displays fine, but if I then hit F5 it loses the external resources again. I don't currently use site cookies of my creation so I think the only cookie is the session id.
Will look into the http traffic after I've upgraded the web server if I get time tomorrow and get back to you.
I appreciate you taking the time out to help me.
knorretje, have upgraded the web server and everything is working as it should now, you were obviuosly right so thanks again for your time and help on this one, much appreciated. Just got to get the hosting service to upgrade their server now :-) should be fun!!!