skip to Main Content

I am facing this problem for awhile now please help me solve it.

It’s literally driving me crazy now i haven’t slept for 23 hours!! Some magic has happened with my project or a GHOST HAS POSESSED MY SERVER!

Please consider the following SS:
see CSS file connected to this php file

It’s not working…. if i EDIT OR ERASE THIS CSS FILE NOTHING HAPPENS!!
Even if i DELETE THE CSS FOLDER FROM MY COMPUTER IT STILL EXISTS!! Consider this screenshot, where i have deleted CSS folder: CSS folder deleted
It still has effect EVEN IT CAN BE SEEN IN DEV TOOLS: still shown in developerTools

The only thing that effects it is if I un-link it from the project as shown in this ss: CSS file unlinked

Note: I have tried restarting my server and re-opening my project.

2

Answers


  1. Check network its disk or memory cached, you can disable cache from network tab

    OR

    you can add a query parameter in your css link like this:

    <link rel="stylesheet" href="css/mystyle.css?q=1">
    

    when you’ll push any new change then just simply change the query parameter for example next time you’ll do it like this:

    <link rel="stylesheet" href="css/mystyle.css?q=2">
    
    Login or Signup to reply.
  2. The browser’s caching algo is storing your file to speed up the process. You’ll have to renew the reference link after any changes so the browser will not render cached file.

    here is an example:

    <link rel="stylesheet" href="path?version=0.01"> 
    

    In your case it will look like this:

    <link rel="stylesheet" href="css/mystyle.css?version=0.01"> 
    

    I hope, this will clear the confusion.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search