This sends the Cache-Control header to allow caching of static resources, and checks the If-Modified-Since header to allow browser to use the cached resource on refresh. Also fixes some paths that caused redirects (core//foo -> core/foo)