cache_get(self,
path,
uptodate=True,
if_modified_time='')
| source code
|
Get the file from the cache.
Will respond with the following HTTP status codes:
-
200: the file was found in the cache and is up to date
-
304: the file is up to date, but is not needed
-
404: the file was not found in the cache
-
405: the file was found, but is stale, and needs to be
refreshed
- Parameters:
path (list of string) - the server and path to download
uptodate (boolean) - whether to check the age of the file on the server to see if
the cached one is still current (optional, defaults to False)
if_modified_time (string) - the if-modified-since header from the request (optional,
defaults to not checking the if-modified-time)
- Returns: (
int, string, dictionary,
string)
- the HTTP status code, status message, headers, and package
data
|