cshum / imagor

Fast, secure image processing server and Go library, using libvips
Apache License 2.0
3.46k stars 138 forks source link

Question: Is there a way to avoid cached image response? #374

Closed amit-yp closed 1 year ago

amit-yp commented 1 year ago
cshum commented 1 year ago

If caching refers to Result Storage, you may use preview() filter:

preview() skips the result storage even if result storage is enabled. Useful for conditional caching

For caching regarding to response headers, you may try some of the config options:

  -imagor-cache-header-ttl duration
        imagor HTTP cache header ttl for successful image response (default 168h0m0s)
  -imagor-cache-header-swr duration
        imagor HTTP Cache-Control header stale-while-revalidate for successful image response (default 24h0m0s)
  -imagor-cache-header-no-cache
        imagor HTTP Cache-Control header no-cache for successful image response