We are using Versioned Media Items
on our website.
Our media URLs will be in the format -
https://domain/-/media path.pdf?sc_lang=en&hash=6952A5CAEA1FC60BEF7CCDF29B0293E2
After we attach a pdf file in the latest version and publish,media url in the front end website remains same (https://domain/-/media path.pdf?sc_lang=en&hash=6952A5CAEA1FC60BEF7CCDF29B0293E2)
and also we are able to view only the old pdf file but not the latest one.
We checked the Web DB
and latest published file is available there. Only after manually clearing cache we are able to view the latest file.
Is any fix available for getting latest versioned file on front end site after publishing without the need of manual cache clear?
Media.AlwaysAppendRevision
value totrue
in configuration? KB Article is very old and settingMediaResponse.MaxAge
to 1 second is not a good idea because of performance.