Hello. How can I restart my html website/webhosting? I know it should restart automatically but when I look at my site I always have to press F5 that the site refresh. But I dont want that every guy that want look at my website and I add something new, that he have to refresh the site with F5 and most of the guys dont know about it.
Your browser will cache to make sites load faster. So you will have to tinker with your browser to disable cache (not recommended).
But I don’t want to do it. And other guys visiting the website too so there must be any way to reload the webiste from cpanel or sth like this. When I visit any other websites and they add for example a new story about sth or something like this, i dont need to refresh the site with F5 because it changes automatically. So how can I do it?
Well, then you could use
Here is a snippet.
The first bit is to set files to their MIME type, so that the second one (which is to manage cache) will work. The bit which says ‘access plus x’ determines how long it will be cache. There is also a default that says ‘access plus 1 year’, just replace it with ‘access plus 0 seconds’
Ok thanks. And that file under, that you sent me, what should I do with it?
Sadly, that is not how the internet works. A browser sends a request for a page, the server responds with a page, and that’s it. Nothing changes unless the browser requests a new page.
But this is not possible with just HTML or server configuration, because it requires the visitor’s browser to trigger a reload.
okay thank you
So that means the
.htaccess snippet i gave is useless? Unless the vistor closes his browser then reopens it?
Your snippet controls browser caching. It’s not useless, but I don’t think it’s what @woxik17 actually was looking for. Or I may have misunderstood the question.
Your snippet helps to make sure that when people refresh the page, they see the latest content. But if I understand @woxik17 correctly, the goal was to automatically refresh the page for everyone when the content changes.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.