CSS updating Delay

Hello, I do not know why but my website’s CSS code doesn’t update right after I save the changes that I made.

My link tag for linking the CSS:

<link rel=“stylesheet” href=“/get/site.css”>

The CSS file:


body {
    background-color: #0c0c0c;
    font-family: sans-serif;
    color: white;
}

container {
    display: flex;
}

box {
    width: 300px;
    height: 500px;
    border: 1px solid white;
    color: white;
    background-color: #0c0c0c;
}

The HTML part:

<div class=“container”>
     <div class=“box”>
         <p>Welcome</p>
     </div>
</div>

The page that links the CSS file is in the same folder(htdocs) as the get folder.
I also do not use cloudflare for my website.

Try clearing your cache

5 Likes

Did not work unfortunately.

Sometimes it will work if you try using Private Mode or another browser completely.

4 Likes

I found the solution and it’s now fixed.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.