Adds logic for serving all kind of files and caching them