Force browser css update |
Post Reply ![]() |
Author | |
mwdarr ![]() Newbie ![]() Joined: Jun 06 2015 Location: Various Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() Posted: Dec 22 2018 at 1:52pm |
When I update an existing web page on my site the formatting is usually wrong for routine users.
I pinned this down and it is because their browser has cached the css file. Browsers have ways to force css to reload. The usual recommendation is to change the css file name. There has to be a way to do this but I cannot find out how to get Openelement to change the css file name or update it in a way that will force browsers to reload. I know I can tell the users to do a ctl-F5, but this is very clumsy. Users should never have to do anything other than pull up the page. Any thoughts. |
|
Maurice Darr
|
|
![]() |
|
digizar ![]() Senior Member ![]() ![]() Joined: Dec 30 2015 Location: Germany Frankfu Status: Offline Points: 734 |
![]() ![]() ![]() ![]() ![]() |
Just rename the .html source file, the .css will follow.
Or ask the domain provider how to disable caching. One.com .htaccess: #FreeScript Header add "disablevcache" "true" |
|
___________________________________
Ask questions only if there is no answer yet. https://blumendigi.com |
|
![]() |
|
Albano ![]() Newbie ![]() ![]() Joined: Jan 10 2019 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
Edited by Albano - Aug 01 2023 at 9:49am |
|
![]() |
|
digizar ![]() Senior Member ![]() ![]() Joined: Dec 30 2015 Location: Germany Frankfu Status: Offline Points: 734 |
![]() ![]() ![]() ![]() ![]() |
Why should I re-rename them?
As you change the *.html source file name, automatically the *.css will also be renamed. Otherwise it would not make any sense, and would cause inferno. Well, you have to upload that couple to the server. And to tell the server, to discard the current cache. So it fetches both new names. Keep on mind though, that OE uses a data bank to keep track of all files and their relations. It is NOT possible to simply change the file name in the explorer or on the server. You have to do that inside OE-Site Explorer. And upload that new version, preferrably as complete version.
Edited by digizar - Jan 12 2019 at 2:18am |
|
___________________________________
Ask questions only if there is no answer yet. https://blumendigi.com |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |