Can't update site

Website URL

The URL of the site is: https://nuclear-tech-mod-wiki.rf.gd/

Error Message

I don’t get an error message, but if I try to update the site files nothing happens. I tried multiple ways, like FTP or the File Manager, but the only thing that change is the HTML file. The CSS it’s like invisible.

Sounds like a caching issue

Try using an incognito browser session to check your site. Ctrl f5 also works on most browsers.

Finally for CSS specifically, in your html you can add a version number to the CSS like this

Style.css?v=12345678

Then when you update the CSS, you update the version number in your html and it’ll force your browser to reload it rather than using the cached CSS from a previous visit

7 Likes

Ok, i cleaned my cache and solved it. But how do I fix this problem “forever”?

The difficult bit is that this is intended browser behaviour, not a bug to be fixed.

Not great for website development, but speeds up page loading for general web browsing for frequently visited pages

You can add

<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>

to your pages. This will force the browser to reload the page every visit, rather than caching the page. However, this could increase the hits\entry processes on your page, by stopping the browser caching the page.

6 Likes

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