Forum Moderators: phranque
I've got a really strange problem.
I made some changes to a style sheet that I didn't like. I undid the changes and FTP'd the .css file back onto our dedicated server but the changes didn't go away. I left it for an hour and still the changes didn't take place.
I then went into my FTP software and deleted the file. It disappeared from the list of files but when I go back into the website the "effect" of the style sheet is still apparent.
I contacted our hosting company who told me to iisrestart /stop then delete the file then iisrestart /start but I got an error message suggesting that the command didn't exist.
So, now I'm stuck with the old version of the style sheet working on the website (even though it doesn't appear in the file list!).
Has anyone any idea how to actually remove this file? It's diving me nuts....
All the best
Mick
Yep, I Ctrl-Refreshed, re-booted my PC and even tried it on different PC's same problem. I even edited the file name and saved the file under a different name. As a final resort I re-booted the dedicated server, no change.
It has a basic file name XXXStyle.css no special characters.
I've just checked again, the file's still not listed. The main ASP pages are looking for that exact file name and are showing as if the style sheet is there (but it's not!).
I've uploaded other files to the same website and the changes go through ok.
Weird.
I'm guessing that there might be a proxy server between you and the web server and it has a copy of the stylesheet in it's chache which is what it is serving up.
Weird, just weird.
In the end I added a parameter into the includes of?ver=### where ### would get dynamically written from a centrally located version number. This way each time the version number got updated, it fooled IE into loading the JavaScript again because the URL changed rather than it using a cached version.