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:


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:

enter image description here

But if I put a change in the URL, format example adding a random param:


Here we see the correct date:

enter image description here

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?

1 Answer 1


You must have a server cache for Static files meaning CSS, js, and XML for your website. that why this reason this issue happens.

If you are using Cdn or a cache system like Cloudflare then you have to add media/googleshopping/googleshopping4-1.xml to the non-cache file to the respective system.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.