Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/cachecontrol
/ cache_url
Method
cache_url
cachecontrol/controller.py:86–87 ·
view source on GitHub ↗
(cls, uri: str)
Source
from the content-addressed store, hash-verified
84
85
@classmethod
86
def
cache_url(cls, uri: str) -> str:
87
return
cls._urlnorm(uri)
88
89
def
parse_cache_control(self, headers: Mapping[str, str]) -> dict[str, int | None]:
90
known_directives = {
Callers
6
test_cache_response_no_store
Method · 0.95
cached_request
Method · 0.95
cache_response
Method · 0.95
update_cached_response
Method · 0.95
build_response
Method · 0.80
url_to_file_path
Function · 0.80
Calls
1
_urlnorm
Method · 0.80
Tested by
1
test_cache_response_no_store
Method · 0.76