DEV: Disable service worker caching by default (#25723)

Followup to c4559ae575
This commit is contained in:
David Taylor 2024-02-16 15:03:05 +00:00 committed by GitHub
parent 5b9eac00b9
commit 1c58395bca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -394,4 +394,4 @@ asset_url_salt =
# disable service-worker caching. An 'offline' page will still be used as an offline fallback.
# This flag is for a temporary experiment, and may be removed at any time
disable_service_worker_cache = false
disable_service_worker_cache = true

View File

@ -319,7 +319,7 @@ RSpec.describe StaticController do
get "/service-worker.js"
expect(response.status).to eq(200)
expect(response.content_type).to start_with("application/javascript")
expect(response.body).to include("workbox")
expect(response.body).to include("addEventListener")
end
it "replaces sourcemap URL" do