├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── README.md ├── index.js ├── package.json └── test ├── fixtures ├── 0 │ └── 012 ├── 1 │ └── 123 ├── 2 │ └── 234 ├── 3 │ └── .keep ├── 4 │ └── 456 └── 5 │ └── 567 └── unit.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .travis.yml 4 | .nyc_output 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/README.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/package.json -------------------------------------------------------------------------------- /test/fixtures/0/012: -------------------------------------------------------------------------------- 1 | Should work OK 2 | KEY: http://test.com/path/120/image123.jpg 3 | Other: header-values 4 | 5 | DATA 6 | -------------------------------------------------------------------------------- /test/fixtures/1/123: -------------------------------------------------------------------------------- 1 | Should work OK 2 | KEY: http://test.com/path/240/image123.jpg 3 | Other: header-values 4 | 5 | DATA 6 | -------------------------------------------------------------------------------- /test/fixtures/2/234: -------------------------------------------------------------------------------- 1 | Should work OK 2 | KEY: https://test.com/path/120/image.jpg 3 | Other: header-values 4 | 5 | DATA 6 | -------------------------------------------------------------------------------- /test/fixtures/3/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/4/456: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/test/fixtures/4/456 -------------------------------------------------------------------------------- /test/fixtures/5/567: -------------------------------------------------------------------------------- 1 | No newline after key 2 | KEY: http://test.com/path/480/image123.jpg -------------------------------------------------------------------------------- /test/unit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lovell/nginx-cache/HEAD/test/unit.js --------------------------------------------------------------------------------