|
2 | 2 | /** |
3 | 3 | * Usage: |
4 | 4 | * |
5 | | - * $ php test/static-open.php |
| 5 | + * $ php test/CodeoriginTest.php |
6 | 6 | * |
7 | | - * $ php test/static-open.php "localhost:4000" |
| 7 | + * $ php test/CodeoriginTest.php "localhost:4000" |
| 8 | + * |
| 9 | + * $ php test/CodeoriginTest.php "code.jquery.com" |
8 | 10 | */ |
9 | 11 |
|
10 | 12 | require_once __DIR__ . '/Unit.php'; |
|
29 | 31 | 'content-length' => '263268', |
30 | 32 | 'last-modified' => 'Fri, 18 Oct 1991 12:00:00 GMT', |
31 | 33 | 'connection' => 'keep-alive', |
32 | | - 'vary' => 'Accept-Encoding, x-cdn-access', |
| 34 | + 'vary' => 'Accept-Encoding', |
33 | 35 | 'etag' => '"28feccc0-40464"', |
34 | 36 | 'cache-control' => 'max-age=315360000, public', |
35 | 37 | 'access-control-allow-origin' => '*', |
|
43 | 45 | 'content-length' => '7456', |
44 | 46 | 'last-modified' => 'Fri, 18 Oct 1991 12:00:00 GMT', |
45 | 47 | 'connection' => 'keep-alive', |
46 | | - 'vary' => 'Accept-Encoding, x-cdn-access', |
| 48 | + 'vary' => 'Accept-Encoding', |
47 | 49 | 'etag' => '"28feccc0-1d20"', |
48 | 50 | 'cache-control' => 'max-age=315360000, public', |
49 | 51 | 'access-control-allow-origin' => '*', |
|
76 | 78 | 'accept-ranges' => 'bytes', |
77 | 79 | ] ); |
78 | 80 |
|
79 | | -// Static asset with a key when no key is required |
| 81 | +// Static asset |
80 | 82 |
|
81 | 83 | Unit::testHttp( $server, '/jquery-3.0.0.js', [ |
82 | 84 | "x-cdn-access: there-is-no-spoon" |
|
87 | 89 | 'content-length' => '263268', |
88 | 90 | 'last-modified' => 'Fri, 18 Oct 1991 12:00:00 GMT', |
89 | 91 | 'connection' => 'keep-alive', |
90 | | - 'vary' => 'Accept-Encoding, x-cdn-access', |
| 92 | + 'vary' => 'Accept-Encoding', |
91 | 93 | 'etag' => '"28feccc0-40464"', |
92 | 94 | 'cache-control' => 'max-age=315360000, public', |
93 | 95 | 'access-control-allow-origin' => '*', |
|
0 commit comments