We are generating a custom XML and stored in the media directory to be accessed by URL. La full URL of the XML have this structure:
https://[maindomain.com]/media/googleshopping/googleshopping4-1.xml
The files are generated constantly. However, we detected that sometimes, the XML is not updated. For example, right now, if we enter the URL, we see this date at the end of the file:
But if I put a change in the URL, format example adding a random param:
https://[maindomain.com]/media/googleshopping/googleshopping4-1.xml?test=885624
Here we see the correct date:
We tried clearing the browser cache and opening the URL in incognito mode but continued seeing the past date. We suppose the file is cached. Is some way to prevent this specific file from being cached?