Page 1 of 1

Clear html5.appcache file

Posted: Monday 29 October 2018 15:59
by syrhus
Hi
About the html part, it would very nice to "clear" the application cache as this is absolutelu useless; the application cache has been created for Offline application. Domoticz is not an Offline application so it doesn't have to create and use an application cache which create a lot of trouble about updates and load 2 times all files at the first time.

The application cache has jsut to cache the offline page and an image:

So, would it be possible to change the html5.appcache file to following code ?

Code: Select all

CACHE MANIFEST

# ref 1 //#BuildHash //forces a cache refresh on every new build

CACHE:
# Images
images/iphone-icon.png
favicon.ico

# HTML pages
views/offline.html

# Resources that require the user to be online.
NETWORK:
index.html
json.htm
ozwcp/ozwcp.html
ozwcp/cp.html
*

# Fallback content
FALLBACK:
images images/iphone-icon.png
/ views/offline.html

Re: Clear html5.appcache file

Posted: Monday 29 October 2018 16:03
by SweetPants
What about mobile users?

Re: Clear html5.appcache file

Posted: Monday 29 October 2018 16:07
by syrhus
Mobile users need a connection to use Domoticz
It doesn't make any sense to use application cache as the default rule is to switch to offline page when the application is offline!

Try to disconnect your mobile and open Domoticz, it won't work even with the application cache.

Re: Clear html5.appcache file

Posted: Friday 03 January 2020 14:49
by Wirehead
Application Cache is scheduled for deprecation in Google Chrome (April 2020):
https://www.chromestatus.com/features/6192449487634432

edit: to be honest, pretty useless anno 2020 - excellent mobile app which doesn't use the app cache; and modern browsers are fast enough not to use the appcache.. :idea:

Re: Clear html5.appcache file

Posted: Thursday 13 February 2020 22:05
by sammyke007

Code: Select all

[Deprecation] Application Cache API manifest selection is deprecated and will be removed in M82, around April 2020. See https://www.chromestatus.com/features/6192449487634432 for more details.
I hope it gets deprecated ASAP! Giving me "Domoticz offline" errors for a while. Only solution is clearing appacache to get the login screen back. One of the reasons to use Firefox.