Internal web server improvements (caching & path checking)