File Explorer

/proc/4/root/var/lang/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

key.js430 B · 18 lines
const { URL, format } = require('url') // options passed to url.format() when generating a keyconst formatOptions = {  auth: false,  fragment: false,  search: true,  unicode: false,} // returns a string to be used as the cache key for the Requestconst cacheKey = (request) => {  const parsed = new URL(request.url)  return `make-fetch-happen:request-cache:${format(parsed, formatOptions)}`} module.exports = cacheKey