Change of plans: caching is done with CacheControl.

Requests-Cache ignores HTTP cache control headers, violating the HTTP
protocol.
This commit is contained in:
2016-03-18 16:38:27 +01:00
parent 9267faac8e
commit 8fbdf456cd

View File

@@ -26,10 +26,11 @@ Communication & File Structure
Caching is performed at different levels:
* Caching of HTTP GET requests is performed by [Requests-Cache](https://readthedocs.org/projects/requests-cache/).
* Caching of HTTP GET requests is performed by [CacheControl](https://cachecontrol.readthedocs.org/).
* Cache is stored in `$CACHE/blender_cloud.sqlite`; by using the SQLite backend,
we ensure cache persistence across Blender runs.
* Cache is stored in `$CACHE/blender_cloud_http/`; by using the file
backend, we ensure cache persistence across Blender runs. This
does require the `lockfile` package to be installed or bundled.
* The code should be made cache-aware and use the Requests-Cache `CachedSession` sessions.
This allows for more granular control over where in the code cache is (not) used.