Improved caching to also cover thirdparty css and js files.