From 99461ea1859acd1d0b3a0ab692078e0a778077e3 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 5 Apr 2020 16:11:36 +0200 Subject: [PATCH] crawler: fix var name issues (private_cache) --- morss/crawler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/crawler.py b/morss/crawler.py index ad4315d..7607762 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -367,7 +367,7 @@ class CacheHandler(BaseHandler): elif self.force_min is None and ('no-cache' in cc_list or 'no-store' in cc_list - or ('private' in cc_list and not self.private)): + or ('private' in cc_list and not self.private_cache)): # kindly follow web servers indications, refresh return None @@ -402,7 +402,7 @@ class CacheHandler(BaseHandler): cc_list = [x for x in cache_control if '=' not in x] - if 'no-cache' in cc_list or 'no-store' in cc_list or ('private' in cc_list and not self.private): + if 'no-cache' in cc_list or 'no-store' in cc_list or ('private' in cc_list and not self.private_cache): # kindly follow web servers indications return resp