Title: Feature Request: cache busting
Last modified: September 17, 2024

---

# Feature Request: cache busting

 *  [squarecandy](https://wordpress.org/support/users/squarecandy/)
 * (@squarecandy)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/feature-request-cache-busting/)
 * Hello –
 * Loving and appreciating your plugin. Works fantastic and especially helpful to
   have the “Grouping” feature to crop all squares at once, all 3:2 at once, etc.
 * One thing we’re having trouble with is that new versions get stuck in the edge
   caching since they have the exact same URL as the old version. If you upload 
   and the crop immediately it usually works, but if an image has been up and available
   publicly for a while and then you go back and revise the cropping, it can be 
   stuck in the static file caching for a very long time. I wonder if there could
   be an option added when you execute the “save crop” action to either change the
   filename or add a cache busting url parameter after that.
 * So transform `/wp-content/uploads/2024/09/my-image-400x400.jpg` to `/wp-content/
   uploads/2024/09/my-image-400x400_crop2.jpg` or else find a way to tag it on in
   the front end output, like `/wp-content/uploads/2024/09/my-image-400x400.jpg?
   crop=v2`
 * Maybe you’ve run into this before and have a suggestion on how we could accomplish
   it already with a small snippet?
 * Thanks for considering it.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Volkmar Kantor](https://wordpress.org/support/users/volkmar-kantor/)
 * (@volkmar-kantor)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/feature-request-cache-busting/#post-18083376)
 * Hi [@squarecandy](https://wordpress.org/support/users/squarecandy/),
 * yeah, the browser cache is always a real problem. Sadly there is no good solution
   to this. 
   The plugin is designed to have the image on the same spot as before.
   You may try to implement some custom code to rename the image and change the 
   metadata. I do not know if wordpress will get the filename of the image-size 
   purely from the image-metadata. But you may try this. Have a look on the github
   page of my plugin to find actions and hooks that may be helping you. The corresponding
   code ist in the “functions\save.php”. If this is working – i may add this as 
   an experimental feature. I would not activate this be default as some other plugins
   may depend on the image exact name.About the second way (add a version string).
   I use this in the backend to always get the latest version of the image. But 
   for the frontend its not that easy, as every theme is different and there a infinit
   ways to load an image in wordpress – depending on your theme. So this is even
   worse.

Viewing 1 replies (of 1 total)

The topic ‘Feature Request: cache busting’ is closed to new replies.

 * ![](https://ps.w.org/crop-thumbnails/assets/icon.svg?rev=1228698)
 * [Crop-Thumbnails](https://wordpress.org/plugins/crop-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crop-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crop-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/crop-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crop-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crop-thumbnails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Volkmar Kantor](https://wordpress.org/support/users/volkmar-kantor/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/feature-request-cache-busting/#post-18083376)
 * Status: not resolved