Revert "Add static routes for frontend modern and legacy service workers" (#122172)
This commit is contained in:
parent
3ddcffb7b7
commit
c28a138dfe
2 changed files with 3 additions and 9 deletions
|
@ -174,12 +174,9 @@ async def test_frontend_and_static(mock_http_client: TestClient) -> None:
|
|||
assert "public" in resp.headers.get("cache-control")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("sw_url", ["/sw-modern.js", "/sw-legacy.js"])
|
||||
async def test_dont_cache_service_worker(
|
||||
mock_http_client: TestClient, sw_url: str
|
||||
) -> None:
|
||||
async def test_dont_cache_service_worker(mock_http_client: TestClient) -> None:
|
||||
"""Test that we don't cache the service worker."""
|
||||
resp = await mock_http_client.get(sw_url)
|
||||
resp = await mock_http_client.get("/service_worker.js")
|
||||
assert resp.status == 200
|
||||
assert "cache-control" not in resp.headers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue