(solved) something changes preset when thermostat webpage is loaded

Hi all,

I have a piece of ethernet thermostat code that is working fine.
This means when I power up the uno the 29 degrees setting is used which is the correct setting for default the thermostat stays at 29 degrees.
Now I access the webpage that can controls the thermostat which contains preset temperature buttons and it automaticly sets the preset after 3 seconds from 29 to 23 degrees, which is not correct.
When I after this set it by button press to 29 it stays there.
When I close the webpage and open it again the 23 preset is selected again after 3 secobds.
I cant find the cause for this behaviour.
As always it must be something simple I overlook.

Thanks, Paco

webpage12.ino (4.88 KB)

Probably the favorite icon request from the browser.

Some browsers may pre-fetch links on a page so it can load them quickly from cache when (or if) you actually visit those links. It looks like you have a few links to change the thermostat to some temperature presets, and your browser is apparently following the 23 degree preset.

This is perfectly acceptable behavior for a browser because the GET method is not supposed to cause any side-effects. Use the POST method instead for any request that modifies something, such as a thermostat setting.

I did not had time to look in to the POST option.
The favorite link of Chrome had the button press for 23 in it.
Removed the link and made new one.
Sorry I overlooked it.

Thanks, Paco