You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTTPFetcher drops HTTP 304 responses needed by yr provider cache handling #4119
In MagicMirror v2.35.0, the yr weather provider has explicit logic to handle 304 Not Modified responses and reuse cached data, but js/http_fetcher.js still routes all non-OK responses into the error path.
That means a 304 response never reaches defaultmodules/weather/providers/yr.js, even though the provider is written to handle it.
When the upstream server returns 304 Not Modified, providers that are built to reuse cached data should receive that response and handle it themselves.
Actual Behavior
HTTPFetcher classifies 304 as an error before the provider sees it.
Local Impact
This was observed while using the built-in weather yr provider with cache headers and existing cached weather data. The local workaround is a small patch to js/http_fetcher.js that lets 304 responses reach the provider.
Activity
Allow HTTPFetcher to pass through 304 responses (#4120)