Search code examples
htmlcssfilezilla

CSS file isn't being refreshed


So I've got my own website, and I just made some adjustments to one HTML file and the global CSS stlye sheet file. On my computer, it looks as I want it. On my website however, the old settings are still adapted - the new HTML file is correctly displayed, but the new CSS settings aren't being adapted. I've tried the following:

  • Cleared my browser's cache
  • Checked if my zoom was 100%
  • Deleted my CSS file from the server (strangely, my site looked exactly the same as if the CSS file was still on the server)
  • Refresh my maps in FileZilla before replacing the new CSS file with the old file

What's happening here?


Solution

  • You can append a parameter after the css link to have the browser force refresh.

    Each time you need a file refresed add ?

    "style.css?1"
    "style.css?2"
    "style.css?3"
    

    Also as Edu mentioned above, please make sure you're copying and linking the correct files.