Skip to content

Cache on file change #1101

Answered by DarthSim
dgrempka asked this question in Q&A
Discussion options

You must be logged in to vote

Since imgproxy doesn't cache results and relies on a third-party cache, it can't control when the cache will request a new version of an image. However, imgproxy has a cachebuster option that allows changing an URL without affecting the processing flow.

The common practice is to not store changed files under the same name. Using the same name for changed files may affect the cache on different levels. For example, the browser will not request a new version of a file until its cache is expired. That's one of the reasons why web app builders usually add hash to .css and .js assets.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dgrempka
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants