-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is it not using cache? #416
Comments
Same problem with Redis connection
|
what caching headers is the upstream server sending? It's been a little while, but there was some discussion some time ago about overriding upstream caching headers, but I don't think it was ever implemented: #28 |
Hi @willnorris
However, the thumbnails are not in the folder. The CPU is always running. Imageproxy performs the resize but never saves the output. |
But what headers are sent from the server hosting the image? For example, the codercat image from GitHub specifies an etag, an expires timestamp, and a cache-control header:
Those are what allow imageproxy to know how long it can cache the image. What happens if you try to load the codercat image in your proxy? Is it being served from cache? If so, then take a look at the response headers from the remote image you are loading to see if it has similar caching headers. |
I've configureD imageproxy WITH with caching to disk:
When I request the image, it's downloaded, stored on disk, resized and the resized image is also stored on disk (I can see the files in the data folder).
However in the logs I see that cache was not used when I request the same image again. Note that the image url I'm requesting contains query string parameters.
The text was updated successfully, but these errors were encountered: