CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/nbubna/store/master/src/store.cookies.js
accept-ranges: bytes
age: 0
date: Tue, 22 Jul 2025 03:34:28 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210080-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753155267.232052,VS0,VE927
vary: Accept-Encoding
x-fastly-request-id: 9646a041fbd85f82375d274dcd600b4cedaf7cd3
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: DAC3:1BE484:1F894:631A7:687F06C3
content-encoding: gzip
accept-ranges: bytes
date: Tue, 22 Jul 2025 03:34:28 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210045-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753155268.208922,VS0,VE260
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 0355a54a9a867cfd2386dc27f020e30e490728f9
expires: Tue, 22 Jul 2025 03:39:28 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