Clear html5.appcache file

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
syrhus
Posts: 79
Joined: Tuesday 12 December 2017 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris
Contact:

Clear html5.appcache file

Post 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
SweetPants

Re: Clear html5.appcache file

Post by SweetPants »

What about mobile users?
syrhus
Posts: 79
Joined: Tuesday 12 December 2017 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris
Contact:

Re: Clear html5.appcache file

Post 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.
Wirehead
Posts: 18
Joined: Saturday 22 November 2014 8:02
Target OS: Linux
Domoticz version:
Contact:

Re: Clear html5.appcache file

Post 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:
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Clear html5.appcache file

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest