Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

Over active caching causing development problems

  • 1 απάντηση
  • 2 έχουν αυτό το πρόβλημα
  • 6 προβολές
  • Τελευταία απάντηση από Tristan C.

more options

Is there some sort of switch in firefox for a development mode or some such that I just can't find?

I seem to be having an odd issue when I'm testing my php code in firefox where it keeps a copy of the page in cache and when the page should be changing, it's not. In order to actually get the expected changes to happen I have to do a Ctrl+Shift+R refresh to completely reload the page...

Say for example i'm writing a simplistic user login system. I have a header section in my page that checks to see if a username cookie has been set and if it has, it uses the name in the cookie to create a "Welcome <name>, [Logout]" message in the header. If there's no cookie, it shows a login link.

The problem occurs where after the user enters their name in the login form and the cookie is set, the welcome message is not shown. Even after clicking through a bunch of other pages with the same cookie checking header, it never shows the welcome. I even checked with FireCookie to be sure the cookie was created, and it was... so I know it's not looking for a non-existent cookie. The only thing I can do to fix this seems to be to force a cache refresh of the page, after that it finds the cookie and shows the welcome no problem... but i have to do this on every page... and when i logout it deletes the cookie but the welcome stays.

What confuses me most and leads me to believe it's some setting in my own firefox is the fact that I've been learning this all at college and we work on fedora linux running firefox with the firebug and firecookie extensions, but i never have these issues... It may sound cocky, but I know it's not my own code because when i run things at school, they run with out a hitch. Sessions, cookies, database, or any type of persistent data storage--they all work no problem. It's only when i'm working at home that i am forced to manually refresh my cache before seeing any dynamic changes. And sometimes a simple Ctrl+Shift+R isn't enough and i have to actually clear my whole cache through the options menu.

This only happens with persistent data storage though... so if i'm writing a page that changes based on &name=john style URL variables, it works everywhere... it's only with things like sessions and cookies and databases that this happens.

Also of note is that other PHP based sites that are using cookies and stuff which i didn't write, such as phpbb or smf forums all work fine on my computer... it's only when testing my own code that it seems to throw it off...

is there some sort of switch that i don't know about that's causing firefox to cache things like this?

Is there some sort of switch in firefox for a development mode or some such that I just can't find? I seem to be having an odd issue when I'm testing my php code in firefox where it keeps a copy of the page in cache and when the page should be changing, it's not. In order to actually get the expected changes to happen I have to do a Ctrl+Shift+R refresh to completely reload the page... Say for example i'm writing a simplistic user login system. I have a header section in my page that checks to see if a username cookie has been set and if it has, it uses the name in the cookie to create a "Welcome <name>, [Logout]" message in the header. If there's no cookie, it shows a login link. The problem occurs where after the user enters their name in the login form and the cookie is set, the welcome message is not shown. Even after clicking through a bunch of other pages with the same cookie checking header, it never shows the welcome. I even checked with FireCookie to be sure the cookie was created, and it was... so I know it's not looking for a non-existent cookie. The only thing I can do to fix this seems to be to force a cache refresh of the page, after that it finds the cookie and shows the welcome no problem... but i have to do this on every page... and when i logout it deletes the cookie but the welcome stays. What confuses me most and leads me to believe it's some setting in my own firefox is the fact that I've been learning this all at college and we work on fedora linux running firefox with the firebug and firecookie extensions, but i never have these issues... It may sound cocky, but I know it's not my own code because when i run things at school, they run with out a hitch. Sessions, cookies, database, or any type of persistent data storage--they all work no problem. It's only when i'm working at home that i am forced to manually refresh my cache before seeing any dynamic changes. And sometimes a simple Ctrl+Shift+R isn't enough and i have to actually clear my whole cache through the options menu. This only happens with persistent data storage though... so if i'm writing a page that changes based on &name=john style URL variables, it works everywhere... it's only with things like sessions and cookies and databases that this happens. Also of note is that other PHP based sites that are using cookies and stuff which i didn't write, such as phpbb or smf forums all work fine on my computer... it's only when testing my own code that it seems to throw it off... is there some sort of switch that i don't know about that's causing firefox to cache things like this?

Όλες οι απαντήσεις (1)

more options

Hello StarWallace,

I'm sorry to hear that you are experiencing issues with Firefox to write your code, but there might luckily be some work-arounds. You can go in Tools -> Web Developer to select between different development tools and options. If that doesn't help I'm sorry and I think you should write a bug report about this since you say it has been occuring since some releases already. I wish you the best of luck with this and your PHP projects.

Thank you for your patience and all your interest in Mozilla Firefox and have a great day! Surf safe and yay for Linux/Fedora! ;-)

Τροποποιήθηκε στις από το χρήστη Tristan C.