Fixed caching for static files and allow static files to be set as dependencies.