Cache user thumbnails

  • 🔧 At about Midnight EST I am going to completely fuck up the site trying to fix something.

Jacknife

kiwifarms.net
Joined
Sep 9, 2021
Often when I load the site the thumbnails in the previews of the threads take ages to load, can I somehow make it so that my browser caches these for like 30 days or so? Same goes for the Avatars, but that might maybe be to much data I don't know.
 
Avatars have <img loading="lazy" /> in them. Another forum I use has the same problem despite caching headers being set up properly. You'd want a tampermonkey script for removing that tag. I used this one <https://greasyfork.org/en/scripts/10697-no-lazy-image-load/code> but also added:
JavaScript:
        if (attr.name == 'loading') {
            attr.value = "eager";
        } else
after line 25.

NOTE: tampermonkey scripts are capable of stealing site data or even global browser data so you shouldn't use them, at least not without understanding each individual script that you run.
 
Last edited:
Back