. :daumenhoch: Erstinstallation für Neueinsteiger: Bitte hier entlang!

. :daumenhoch: Robonect-Gebrauchsanweisung und Support für alle Robonect-Menüpunkte! Bitte hier entlang!

. :arrow: Für jeden Robonect-Menüpunkt gibt es dort ein eigenes Unterforum
. :arrow: Erklärung des Menüpunkts und unser Support direkt dort im Unterforum des Menüpunkts!

Page not found: caching? [BUG]

- alle Auffälligkeiten die es zu klären gilt
- Verdacht, dass ein echter Bug vorliegt

:!: Bevor Du Deinen Bug-Verdacht meldest, wurde er vielleicht schon behoben!

Hast Du das aktuelle Daily Bulid schon ausprobiert? Vielleicht ist Dein Bug ja schon gefixt!? :arrow: Download

Falls das Daily Build Dein Problem nicht lösen konnte, schreibe bitte das Datum aus Deinem installierten Daily Built (schwarze Fußzeile im Robonect-Menü) in Deinen Bug-Bericht dazu! Viel Spaß beim Testen!
Antworten
brambo123
Forum-Anfänger
Beiträge: 3
Registriert: Sa 21. Nov 2020, 11:29
Mäher: Gardena R40Li
Firmware des Mähers (MSW): MSW 5.xx.xx
Herstellungsjahr: 2015
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.2

Page not found: caching? [BUG]

Beitrag von brambo123 »

A while back I wanted to open the weather page, but got the message that the page does not exist.
Perhaps a small bug somewhere that rarely causes problems.
After this I couldn't manage to open the weather page on my phone, while this works fine on my laptop.
By using Chrome remote debugging I quickly discovered the cause: caching!
The web server has specified that the redirect to the "notfound?file=weather" page may be cached for a whole year.
On the page with error message, the caching is off, but not on the redirect itself.
Perhaps it would be wise to disable caching on all forwards?

Benutzeravatar
shadowkiller
Forum-Veteran
Beiträge: 3770
Registriert: Do 11. Jan 2018, 08:42
Wohnort: Würzburg
Mäher: Husqvarna Automower 315
Firmware des Mähers (MSW): MSW 10.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: 1.3 (WLAN 1.7.4)
hat sich bedankt: 105 Male
wurde gedankt: 66 Male

Re: Page not found: caching?

Beitrag von shadowkiller »

Maybe Robonect has no connection to the internet? Does Robonect appear in your internet router with DHCP?
Anleitung zur Erstinstallation
--
Robonect® Dokumentation und Support
--
Forum cooler nutzen: Hervorhebungen machen und Screenshots posten
--
Es wurde schon alles gefragt, nur noch nicht von allen. (frei nach Karl Valentin)

brambo123
Forum-Anfänger
Beiträge: 3
Registriert: Sa 21. Nov 2020, 11:29
Mäher: Gardena R40Li
Firmware des Mähers (MSW): MSW 5.xx.xx
Herstellungsjahr: 2015
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.2

Re: Page not found: caching?

Beitrag von brambo123 »

I am not talking about a notification that the browser gives, but really the notification that robonect gives.

Bild
(Apparently also has a bug in Chrome remote debug, colors are not quite correct :lol: )

Due to an unknown cause, the robonect sent me a redirect to the error page once.
This request may be cached according to the response headers.
My phone caches this redirect as requested, and wil not asked if the /weather page exists for a whole year.
Bild

The problem can be simulated simply with any random non-existing page name.
For example, go to /pizza page, this will be redirected to /notfound?file=pizza.
The next time you want to go to /pizza, the robonect will not be asked if /pizza exists, the browser will just prompt for /notfound?file=pizza.

The problem is solved by clearing the cache in the browser.
But that is not so easy on a mobile phone.
It's much better to just stop caching redirects altogether.

Benutzeravatar
shadowkiller
Forum-Veteran
Beiträge: 3770
Registriert: Do 11. Jan 2018, 08:42
Wohnort: Würzburg
Mäher: Husqvarna Automower 315
Firmware des Mähers (MSW): MSW 10.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: 1.3 (WLAN 1.7.4)
hat sich bedankt: 105 Male
wurde gedankt: 66 Male

Page not found: caching?

Beitrag von shadowkiller »

I still think Robonect has no internet connection.

Try to reach Robonect over your mobile, while your mobile isn’t connected to your home-WLAN.

For this you have to switch on remote accesss in Robonect. Then you should have an address like xyz.mower.online (shown in Robonect)
Anleitung zur Erstinstallation
--
Robonect® Dokumentation und Support
--
Forum cooler nutzen: Hervorhebungen machen und Screenshots posten
--
Es wurde schon alles gefragt, nur noch nicht von allen. (frei nach Karl Valentin)

Benutzeravatar
SenfmitHonig
sehr erfahrener Forum-Nutzer
Beiträge: 387
Registriert: So 30. Okt 2016, 22:39
Wohnort: 943xx
Mäher: Husqvarna Automower 430X
Firmware des Mähers (MSW): MSW 6.xx.xx
Herstellungsjahr: 2016
Robonect-Modul: Robonect Hx (Rev.2)
Robonect Firmware: V1.3
hat sich bedankt: 4 Male
wurde gedankt: 25 Male

Re: Page not found: caching?

Beitrag von SenfmitHonig »

Servus!,
an interesting approach!
I think that you should forward this to the "ADMIN". I personally do not know me there so well.

The request from shadowkiller is not to be neglected.
Does your mower at the time of the error a connection to the Internet :?:

brambo123
Forum-Anfänger
Beiträge: 3
Registriert: Sa 21. Nov 2020, 11:29
Mäher: Gardena R40Li
Firmware des Mähers (MSW): MSW 5.xx.xx
Herstellungsjahr: 2015
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.2

Re: Page not found: caching?

Beitrag von brambo123 »

Yes, the robonect is connected to the internet, in the right way, it really has nothing to do with it at all.
It actually has nothing to do with the /weather page either, it is purely about caching during a redirect.
Perhaps useful to know: I am an IT professional and PCB designer/programmer :geek:

Just maybe, just when I opened the weather page, the internet connection was down for a moment.
Or maybe it was my phone, or maybe a small software bug.
Whatever the first reason was: the robonect redirected me to the error page.
Only redirected once already ensures that the page is no longer available for a year due to caching.
Whatever you try, resetting the device, firmware reflash, or even replacing the entire module.
As long as the url is the same, the browser uses its cache.

I can of course clear the cache in my browser, ignore the problem and not report it.
But it could happen again, maybe to someone else, who knows.
That's why I created this topic in the "Bug?" section.
It's just a very small bug, can probably be fixed with a few lines of code, few minutes of work.
It can prevent many problems in the future.

The basics of the bug:
Currently, caching headers are set on a redirect.
It is a redirect with http code 302, which means a temporary redirect.
It is temporary, so it should not be cached!

Admin
Administrator
Beiträge: 2838
Registriert: Di 19. Jan 2016, 18:34
Wohnort: Kiel
Mäher: Gardena SILENO City 500
Firmware des Mähers (MSW): MSW 11.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: stets die Allerneuste :-)
hat sich bedankt: 1 Mal
wurde gedankt: 34 Male
Kontaktdaten:

Re: Page not found: caching?

Beitrag von Admin »

Thank you. Indeed this seems to be a bug.
Werbefläche zu vermieten. :lol:

Antworten

Zurück zu „Bug?“