Spaces:
Running
Running
ling-open-studio / node_modules /next /dist /shared /lib /router /utils /cache-busting-search-param.js
Download node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js from imspsycho/ling-open-studio: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/spaces/imspsycho/ling-open-studio/resolve/main/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js
- Command line
-
hf download hf://spaces/imspsycho/ling-open-studio/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js
-
curl -L -o cache-busting-search-param.js https://huggingface.co/spaces/imspsycho/ling-open-studio/resolve/main/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js
832 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| Object.defineProperty(exports, "computeCacheBustingSearchParam", { | |
| enumerable: true, | |
| get: function() { | |
| return computeCacheBustingSearchParam; | |
| } | |
| }); | |
| const _hash = require("../../hash"); | |
| function computeCacheBustingSearchParam(prefetchHeader, segmentPrefetchHeader, stateTreeHeader, nextUrlHeader) { | |
| if ((prefetchHeader === undefined || prefetchHeader === '0') && segmentPrefetchHeader === undefined && stateTreeHeader === undefined && nextUrlHeader === undefined) { | |
| return ''; | |
| } | |
| return (0, _hash.hexHash)([ | |
| prefetchHeader || '0', | |
| segmentPrefetchHeader || '0', | |
| stateTreeHeader || '0', | |
| nextUrlHeader || '0' | |
| ].join(',')); | |
| } | |
| //# sourceMappingURL=cache-busting-search-param.js.map |