arachnys / athenapdf

Drop-in replacement for wkhtmltopdf built on Go, Electron and Docker
MIT License
2.26k stars 186 forks source link

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

Open alexxwiz opened 6 years ago

alexxwiz commented 6 years ago

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 commented 5 years ago

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.

alexxwiz commented 4 years ago

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