Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Add commandline switch to disable Electron disk cache for HTTP requests. #177

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alexxwiz
Copy link

Sometimes we need to disable Electron disk cache, for example - when we generating jpg-thumbnails for inclusion in pdf. I have added new athenapdf commandline switch --disable-http-cache which is similar to Electron.

@MrSaints
Copy link
Collaborator

MrSaints commented Dec 6, 2018

I'd be happy merging this with --no-cache. I am wondering if we have a case where we want to disable HTTP cache, but not disk cache or vice versa. I think it is better hiding the implementation complexity.

@@ -46,6 +46,7 @@ athena
.option("--no-cache", "disables caching")
.option("--ignore-certificate-errors", "ignores certificate errors")
.option("--ignore-gpu-blacklist", "Enables GPU in Docker environment")
.option("--disable-http-cache", "Disables Electron disk cache for HTTP requests.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that it would be better to make disable electron cache with --no-cache option instead of introducing a new one.

@alexxwiz
Copy link
Author

I updated pull request, now disk cache disabled with same --no-cache option.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants