h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing

Home Page:https://fly.io/docs/app-guides/run-a-global-image-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to pass through Cache-control headers?

EyePulp opened this issue · comments

Howdy;
When using -enable-url-source, I would like to pass thecache-control header from the upstream source instead of use the -http-cache-ttl argument (different sources have different cache control needs). Is there a way to pass cache-control through as part of the response headers from imaginary?

I have tried -forward-headers cache-control but no cache-control value comes through at all unless include the -http-cache-ttl (and this is testing an image with a cache-control header served from source, just to be clear).

Thanks!

I think I'll open an issue more specific to the ask now that I see how -forward-headers is meant to work