Force Client Cache Update

I have an app that depending on updates, sometimes requires clear the user’s browser cache for them to see the updated content properly.

What is the way to handle this?
Is there a way so they don’t need to do this manually? So setting I can set that will make the browser reload everything again?

For context, I updated my vendor files, pushed them to the server. I cleared the assets and they were rebuilt, but this isn’t reflected for the end-user unless they first clear their browser cache.

You can force adding timestamp to the assets files if you copy them from the source Application Structure: Assets | The Definitive Guide to Yii 2.0 | Yii PHP Framework

1 Like

Thank you very much for pointing me in the right directly. Greatly appreciated!

Perhaps better option is to proper set ETag header to your assets files.

1 Like