diff --git a/BOARD.txt b/BOARD.txt index afa95c0..e01b3be 100644 --- a/BOARD.txt +++ b/BOARD.txt @@ -30,7 +30,6 @@ click on links to open them bug: can't reload bebop: pages bug: exiting editor breaks curses dumb rendering mode per site -disable cache per site well, preferences per site maybe? download without memory buffer download in the background diff --git a/bebop/browser/browser.py b/bebop/browser/browser.py index 1678e76..e8b39f8 100644 --- a/bebop/browser/browser.py +++ b/bebop/browser/browser.py @@ -317,7 +317,7 @@ class Browser: return result def open_url(self, url, base_url=None, redirects=0, assume_absolute=False, - history=True, use_cache=True): + history=True, use_cache=False): """Try to open an URL. This function assumes that the URL can be from an user and thus tries a @@ -516,7 +516,7 @@ class Browser: else: previous_url = self.history.get_previous() if previous_url: - self.open_url(previous_url, history=False) + self.open_url(previous_url, history=False, use_cache=True) def go_to_parent_page(self): """Go to the parent URL if possible.""" diff --git a/bebop/browser/gemini.py b/bebop/browser/gemini.py index 5c9c6d6..27fed6b 100644 --- a/bebop/browser/gemini.py +++ b/bebop/browser/gemini.py @@ -26,7 +26,7 @@ def open_gemini_url( browser: Browser, url: str, redirects: int =0, - use_cache: bool =True, + use_cache: bool =False, cert_and_key=None ) -> Optional[str]: """Open a Gemini URL and set the formatted response as content. @@ -314,7 +314,6 @@ def _handle_cert_required( browser, url, redirects=redirects + 1, - use_cache=False, cert_and_key=(cert_path, key_path) )