Git Product home page Git Product logo

Comments (3)

voila avatar voila commented on June 9, 2024

Hello, I'd like to work on this.
What do you have in mind?
I am thinking of using a HashMap<String, String> in http.rs to index response.text() by response.url().

from monolith.

snshn avatar snshn commented on June 9, 2024

Hey there @voila!
Your help would be greatly appreciated on this one. Sounds like using hashmap is going to do the job. During its first prototype I used an object (it was initially written in JS), so I guess great minds think alike? Using strings for storing base64 sounds good to me. It could be cool to borrow dataURLs from that "store" to minimize the RAM footprint, but that perhaps should be a later enhancement. We could set it to cache only binary data, or, perhaps selecting what to cache and what not to cache by looking at the mime-type (e.g. always store base64 of png/svg/gif, never cache JS or CSS since it's unlikely those will ever get included more than once). 404's don't need to be cached I think, we just need to replace links to broken resources with full URLs.

If you could help implementing caching that would be of great help for everyone who uses monolith. We could always improve what and how it caches later, saving time on not making redundant requests is the most important objective right now.

from monolith.

snshn avatar snshn commented on June 9, 2024

Resolved by #75 thanks to @voila

from monolith.

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.