PHP 8.2.30
Preview: key.js Size: 430 B
/opt/alt/alt-nodejs20/root/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/key.js

const { URL, format } = require('url')

// options passed to url.format() when generating a key
const formatOptions = {
  auth: false,
  fragment: false,
  search: true,
  unicode: false,
}

// returns a string to be used as the cache key for the Request
const cacheKey = (request) => {
  const parsed = new URL(request.url)
  return `make-fetch-happen:request-cache:${format(parsed, formatOptions)}`
}

module.exports = cacheKey

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
16.04 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download
284 B lrw-r--r-- 2026-02-23 03:24:42
Edit Download
1.75 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download
430 B lrw-r--r-- 2026-02-23 03:24:42
Edit Download
4.42 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).