Spaces:
Running
Running
Download tests/api/test_static_cache_headers.py from Arrechenash/stocks: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/Arrechenash/stocks/resolve/main/tests/api/test_static_cache_headers.py
- Command line
-
hf download hf://spaces/Arrechenash/stocks/tests/api/test_static_cache_headers.py
-
curl -L -o test_static_cache_headers.py https://huggingface.co/spaces/Arrechenash/stocks/resolve/main/tests/api/test_static_cache_headers.py
434 Bytes
| 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") | |