Skip to content
Snippets Groups Projects
Commit 09a43199 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'release-3.0' into '810-change-default-apollo-network-policy-to-cache-and-network'

# Conflicts:
#   CHANGELOG.rst
parents 96e926a7 65919622
No related branches found
No related tags found
3 merge requests!1237Release 3.0,!1194Resolve "Change default Apollo network policy to cache-and-network",!1183Release 3.0
Pipeline #116120 passed with warnings
......@@ -14,6 +14,13 @@ Changed
* Change default network policy of the Apollo client to `cache-and-network`.
Fixed
~~~~~
* In case the status code of a response was not in the range between 200 and 299
but still indicates that the response should be delivered, e. g. in the case
of a redirected request, the service worker served the offline fallback page.
`3.0b1` - 2023-02-27
--------------------
......
......@@ -239,7 +239,7 @@ export default defineConfig({
plugins: [
{
fetchDidSucceed: async ({ request, response }) => {
if (response.ok) {
if (response.status < 400) {
return response;
}
throw new Error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment