rewrite styles
This commit is contained in:
+3
-3
@@ -93,9 +93,9 @@ def test_html_cache_headers_and_static_versioning(tmp_path):
|
||||
app=make_app(tmp_path, "cache.db")
|
||||
client=app.test_client()
|
||||
response=client.get('/login')
|
||||
assert response.headers['Cache-Control'] == 'no-store, no-cache, private, must-revalidate'
|
||||
assert response.headers['Pragma'] == 'no-cache'
|
||||
assert response.headers['Expires'] == '0'
|
||||
assert response.headers['Cache-Control'] == 'no-store, private, must-revalidate'
|
||||
assert 'Pragma' not in response.headers
|
||||
assert 'Expires' not in response.headers
|
||||
html=response.get_data(as_text=True)
|
||||
assert '/static/css/layout.css?v=' in html
|
||||
assert '/static/js/core.js?v=' in html
|
||||
|
||||
Reference in New Issue
Block a user