WTH do need to clear the cache all the time?

This is an old problem and every time it’s brought up we get told to “clear your browser’s cache”… Well why don’t other web-based tools require this? In the year 2022 it’s not really the users’s browser is it?

You only need to clear cache when making changes to your frontend.

They do. When you update code and the code is cached, it needs to be cleared in order for it to be properly used. That’s why oddness happens on websites randomly. Clear your cache and the oddness goes away.

Usually is.

If you want to clear cache quickly on windows → CTRL + F5

3 Likes

Facebook.com? Twitter.com? community.home-assistant.io? No, they don’t. If they ever do then it is fixed on their end and not blamed on users.

agree.
Definitely other apps are able invalidate cache on their own. Even if some artifacts exist, those are not as common as in case of HA.

Current state leads to too many situations, when attempting of resolving an issue (even not related with FE) results in response ‘did you clear the cache’

2 Likes

There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors.

4 Likes

This is incorrect!

You need to clear the cache every time you launch the app after sleep, even when no changes have been made.

For the app to start working again, a CMD-R refresh is required. Other apps doesn’t require a CMD-R to start working again after the computer has slept.

Here’s a clip:
https://streamff.com/v/8bde51

In the last few seconds I do a refresh and the app starts working again.

1 Like

Do these websites allow you to make big changes to the ui code yourself?

My app opens without fail, working instantly. Are you using custom cards? Do you have your custom card resources set properly?

What browser are you using?

I’m not using a browser, I’m using the Home Assistant app.

The dashboard is the default autogenerated one, but it’s not only Lovelace that stops working after sleep - it’s the whole HA (like the Logbook) as you can see from the video.

Yes you are using a browser. What OS are you running on? The apps run browsers based on the OS it’s running on. I.e. the iOS app uses safari.

macOS, so WebKit (the browser engine used on macOS and iOS).

A browser and a browser engine isn’t the same thing btw, the engine is just a component of the browser. :wink:

… what Mac App? There is no official mac app, is this an official app?

It is when you’re dealing with support and you don’t know the person’s technical knowledge. No reason to be a dick here. I’m trying to help and I know nothing about your knowledge or background.

Alright it looks like the same app as the iOS app. I’m not sure why it does that for you. It doesn’t do that for me. I don’t run on a mac, only on an iOS device.

Does the mac app have Background App Refresh on in the settings for the app (Outside Home assistant)?

Yeah, I’ve set it to 20 seconds in order to try to solve the issue, no dice.

I’d write it up as an issue, this doesn’t happen on the iOS install. Must be something specific to macOS (or whatever os they are using now)

I “fixed” it with this Keyboard Maestro macro:

But honestly, it’s a pretty stupid solution that shouldn’t have been neccessary.

1 Like