X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fhttp.py;h=8c6dab1bde94a1d9cea5d7fd74eaa13a133deb9d;hb=031f1da47546ebf12f6e74467fcf4824ea4a26a3;hp=10fae9c475204852b73eabe039447d4d5d4497e4;hpb=f3df46ac87d5f9d1824156d9fed605dd03f3ccde;p=mpd-sima.git diff --git a/sima/lib/http.py b/sima/lib/http.py index 10fae9c..8c6dab1 100644 --- a/sima/lib/http.py +++ b/sima/lib/http.py @@ -190,12 +190,6 @@ class CacheController(object): # return the original handler return False - def add_headers(self, url): - resp = self.cache.get(url) - if resp and 'etag' in resp.headers: - return {'If-None-Match': resp.headers['etag']} - return {} - def cache_response(self, request, resp): """ Algorithm for caching requests.