This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

F5 refresh causes FF to lose images and style sheets

  • 7 respuestas
  • 2 tienen este problema
  • 5 visitas
  • Última respuesta de adcoso

more options

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 ?

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 ?

Solución elegida

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/

Leer esta respuesta en su contexto 👍 0

Todas las respuestas (7)

more options

Solución elegida

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/

more options

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.

more options

A ctrl+F5 would send a normal request so that is not a revalidation request.

more options

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.

more options

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.

more options

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.

more options

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!!!