crccheck / gallery-cms

A simple online gallery where the images are the database.
GNU General Public License v3.0
3 stars 0 forks source link

thumbnail/image caching #73

Open crccheck opened 4 years ago

crccheck commented 4 years ago

options:

crccheck commented 4 years ago

service worker isn't working out

  1. Something in Snowpack's dev build injects import statements that break the JavaScript file
  2. Reloading the service worker sucks

Now i'm thinking of doing a local filesystem cache like I had originally. It would work as a static file handler falling back to the thumbs handler. I sure hope you can have two url routes serving the same urls. We'd get automatic 304 not-modified responses and PIL is just used to working with files.

I'm thinking all the thumbs are in one directory and the filename is a hash of the path