Commit graph

7 commits

Author SHA1 Message Date
webzwo0i
5133a86798 enforece usage of require.define callback parameter for packages 2020-12-24 13:23:27 +01:00
webzwo0i
8795c58235 test missing files and missing jsonp callbacks, currently failing 2020-12-24 13:23:27 +01:00
webzwo0i
b1aced32a9 add expiration test 2020-12-24 13:23:27 +01:00
webzwo0i
a4639fa638 test undefined Accept-Encoding with head request 2020-12-24 13:23:27 +01:00
webzwo0i
04bb2a9f8f caching_middleware: add test for unsupported methods 2020-12-24 13:23:27 +01:00
Richard Hansen
b8d07a42eb lint: Run eslint --fix on bin/ and tests/ 2020-11-24 20:06:12 +00:00
webzwo0i
f2febcfc7e
minify: Fix gzip not triggered for packages (#4491)
* caching_middleware: fix gzip compression not triggered

* packages: If a client sets `Accept-Encoding: gzip`, the responseCache will
include `Content-Encoding: gzip` in all future responses, even
if a subsequent request does not set `Accept-Encoding` or another client
requests the file without setting `Accept-Encoding`.
Fix that.

* caching_middleware: use `test` instead of `match`

* add tests

* make code easier to understand

* make the regex more clear
2020-11-22 09:23:33 +00:00