• #dev 2018-08-21
  • Prev
    Next
  • #indieweb
  • #dev
  • #wordpress
  • #meta
  • #stream
  • #microformats
  • #known
  • #events
#dev ≡
  • ←
  • →
2018-08-21 UTC
# 16:48
Zegnat
I implemented a generic HTTP request cache the other day. Basically I just store the raw response in a file where the name is a hash of the request. Same could work for images, just fetch a URL and store it locally with the name being the URL. Any time you need an image from the same URL, check if it exists in the cache already