function getCacheId(type, request, withContext) {
	return JSON.stringify({
		type,
		context: withContext ? request.context : "",
		path: request.path,
		query: request.query,
		fragment: request.fragment,
		request: request.request,
	});
}
@param {string} type type of cache
@param {ResolveRequest} request request
@param {boolean} withContext cache with context?
@returns {string} cache id