Fix file permissions and provide ability to control cached content