Coder Social home page Coder Social logo

How to cleanly clear cache about httpdirfs HOT 4 OPEN

maysara avatar maysara commented on June 4, 2024
How to cleanly clear cache

from httpdirfs.

Comments (4)

fangfufu avatar fangfufu commented on June 4, 2024

It is in your ~/.cache/httpdirfs. Do let me know if you have any more questions. :)

from httpdirfs.

fangfufu avatar fangfufu commented on June 4, 2024

I probably should add an option to clear the cache.

from httpdirfs.

maysara avatar maysara commented on June 4, 2024

I'm currently unmounting everything and deleting the folders content when I run out of cache disk space, I'm specifying a path for each mount separately, but as I'm not sure if I could keep meta and delete data for example.

What I wonder is where the line should be drawn between when to use httpdirfs cache and deploying an http cache server (nginx/varnish/squid/nuster) instead.

In my particular case, I would not mind keeping the files as long as I'm not running out of space, since I eventually will, finely controlling what to keep and how long ..etc might be better controlled by a proxy cache server, but what are the things that would make httpdirfs work faster/better in this constellation? should I just drop httpdirfs cache and rely on the http cache? is there a point in keeping both? what is internally gained/saved when accessing files from the httpdirfs cache vs. a local proxy cache?

from httpdirfs.

fangfufu avatar fangfufu commented on June 4, 2024

@maysara , sorry for the late reply. I missed that you replied to the thread again.

I would say you should try benchmarking yourself. It depends on which proxy server you use. I don't know how proxy server cache partially downloaded files. The exact details is also implementation dependent.

What is certain is that proxy server probably won't cache HTTPS contents, whereas this filesystem definitely will. ?

I hope these help.

from httpdirfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.