Spaces:
Running
Running
File size: 434 Bytes
ee446e8 | 1 2 3 4 5 6 7 8 9 10 11 12 | def test_static_assets_must_revalidate(app_client):
resp = app_client.get("/static/manifest.json")
assert resp.status_code == 200
assert resp.headers.get("cache-control") == "no-cache"
def test_static_bundle_must_revalidate(app_client):
resp = app_client.get("/static/css/at-risk.css")
assert resp.status_code == 200
assert resp.headers.get("cache-control") == "no-cache"
assert resp.headers.get("etag")
|