Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 6897:d9c9f5b81d4d
application/javascript is now text/javascript
ubuntu-22.04 chnged js file mime type from the depricated
application/javascript. to text/javascript.
client.py cache text/javascript like application/javascript
test_liveserver: use current environment's mapping for .js files to
mimetype.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 01 Sep 2022 15:06:53 -0400 |
| parents | 6b636fb29740 |
| children | 178c80c77ca4 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Thu Sep 01 14:45:31 2022 -0400 +++ b/roundup/cgi/client.py Thu Sep 01 15:06:53 2022 -0400 @@ -342,6 +342,7 @@ # Key can be mime type - all files of that mimetype will get the value Cache_Control = { 'application/javascript': "public, max-age=1209600", # 2 weeks + 'text/javascript': "public, max-age=1209600", # 2 weeks 'text/css': "public, max-age=4838400", # 8 weeks/2 months }
