L
L
leyo2018-08-03 10:56:00
Yii
leyo, 2018-08-03 10:56:00

How to reset yii js file cache?

Good afternoon!
In Yii2, I put a js file in frontend/web/folder/ and connect it to another site using an absolute path.
It's cached and I can't clear that cache. Cleared assets - did not help. How to clean?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-08-03
@slo_nik

In the configuration file, at the time of development. Resources will be updated automatically. No need to manually clean up the assets directory.

'assetManager' => [
  'linkAssets' => true
]

L
leyo, 2018-08-03
@leyo

In my case, the problem turned out to be different. I use https via cloudflare and, judging by the Cache-Control: public, max-age=432000 header, it caches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question