-
Hi, Is there an option to delete all connected cached files of a local image without deleting the whole cache and maybe even on file updates? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 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 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification! |
Beta Was this translation helpful? Give feedback.
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.