Rocky_Mountain_Vending/.pnpm-store/v10/files/d8/89f3f6e67726954a586857c26f8a439740ac838a3d0ecaa3cdc5083ed0580fbf97d2d97dc1574be580f97affa9979333cf5353b3b3b31e8eb011fc0244085a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

31 lines
789 B
Text

var test = require('tape');
var parseCacheControl = require('./index');
test('parseCacheControl', function (t) {
var header = parseCacheControl('must-revalidate, max-age=3600');
t.ok(header);
t.equal(header['must-revalidate'], true);
t.equal(header['max-age'], 3600);
header = parseCacheControl('must-revalidate, max-age="3600"');
t.ok(header);
t.equal(header['must-revalidate'], true);
t.equal(header['max-age'], 3600);
header = parseCacheControl('must-revalidate, b =3600');
t.notOk(header);
header = parseCacheControl('must-revalidate, max-age=a3600');
t.notOk(header);
header = parseCacheControl(123);
t.notOk(header);
header = parseCacheControl(null);
t.notOk(header);
header = parseCacheControl(undefined);
t.notOk(header);
t.end();
});