CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/nbubna/store/master/src/store.cookies.js
accept-ranges: bytes
date: Mon, 21 Jul 2025 07:13:40 GMT
via: 1.1 varnish
age: 0
x-served-by: cache-bom4742-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753082020.071851,VS0,VE253
vary: Accept-Encoding
x-fastly-request-id: 8bbef64d38d79ea633625e4c6cf7300f895daa51
content-length: 0
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: W/"5b6157912c0c832eafd86fe63acc17d1230ca00809526272ef98a5f6870fb5a0"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: EA6D:11DD33:1B7CF7:406E47:687DE8A4
content-encoding: gzip
accept-ranges: bytes
date: Mon, 21 Jul 2025 07:13:40 GMT
via: 1.1 varnish
x-served-by: cache-bom4741-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753082020.374944,VS0,VE381
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: f835ccbad5e76619c6c1b79ab6b10b64cc50d60c
expires: Mon, 21 Jul 2025 07:18:40 GMT
source-age: 0
content-length: 1042
/**
* Copyright (c) 2021 ESHA Research
* Dual licensed under the MIT and GPL licenses:
* https://www.opensource.org/licenses/mit-license.php
* https://www.gnu.org/licenses/gpl.html
*
* Creates a store area that uses a separate cookies for each key/value as the backing
* storage. This effectively gives you the store API for all cookies..
* It could definitely use more testing. It also feels like it should better
* integrated with the expire plugin before we call it BETA.
*
* Status: ALPHA - unsupported, useful, needs testing
*/
;(function(window, document, store, _) {
var C = _.cookies = {// still good enough for me
maxAge: 60*60*24*365*10,
suffix: ';path=/;sameSite=strict'
};
C.all = function() {
if (!document.cookie) {
return {};
}
var cookies = document.cookie.split('; '),
all = {};
for (var i=0, cookie, eq; i