BullGuard Antivirus Sale - 60% Off with openElement !
Forum openElement Homepage
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - Force browser css update
  FAQ FAQ  Forum Search   Register Register  Login Login

Force browser css update

 Post Reply Post Reply
Author
Message
mwdarr View Drop Down
Newbie
Newbie


Joined: 06 Juin 2015
Location: Various
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote mwdarr Quote  Post ReplyReply Direct Link To This Post Topic: Force browser css update
    Posted: 22 Dec 2018 at 14:52
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
Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Dec 2015
Location: Germany
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: 24 Dec 2018 at 18:39
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://digispics.com/_pers/resger2017.pdf
Back to Top
Albano View Drop Down
Newbie
Newbie
Avatar

Joined: 10 Jan 2019
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Albano Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jan 2019 at 12:32
After the updates go off, do you have to then rename the file back to what it was before, Digizar?
Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Dec 2015
Location: Germany
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jan 2019 at 14:08
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 - 12 Jan 2019 at 03:18
___________________________________
Ask questions only if there is no answer yet.
https://digispics.com/_pers/resger2017.pdf
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 10.11
Copyright ©2001-2012 Web Wiz Ltd.

This page was generated in 0,031 seconds.