Caching some scripts results in 'clashes' with caching accross users, for example when CRSF is used.
When this is inside the application, this can be fixed, but before fixing, the issue must be identified.
When this is inside the framework, fixing is "not possible".
My changes allow the developer to identify the caching issues with the script when YII_DEBUG is set. The caching is done 'as usual' but the script is compressed every time in debug mode and compared with the cached version. In case there is a difference, this is reported.