0

Please read this before answering: I know we can flush the BLOB cache and it will fix the problem.

But we're giving the power of updating the dimensions to end users and they might do it frequently. Flushing BLOB cache isn't the solution here.

We are using https://sharepoint.com/PublishingImages/someImage.jpg?RenditionID=xx to refer to the rendition image.

The browser cache is the problem here. How can we tell the browser to make sure it asks the server when the image dimensions are updated?

PS: I had a look at ImageRendition object and it does contain a Version property, but even if I change the dimensions it still remains 1.

2
  • 1
    how about appending another query string parameter, something like .../someImage.jpg?RenditionID=xx&v=1.0 ? Commented Mar 5, 2018 at 14:10
  • But how would we know from server side that the dimensions have been updated? Commented Mar 6, 2018 at 5:35

1 Answer 1

0

We ended up appending the last modified date of the Image library alongwith the RendtionID in the image URL.

So the URL becomes:

https://sharepoint.com/PublishingImages/someImage.jpg?RenditionID=xx&lastModified=xxxxxxxx 

PS: The image item got modified but nothing obvious was changed in the properties, just a new version was created. Which in turn updates the last modified date of the image library.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.