{"action":"opened","issue":{"url":"https://api.github.com/repos/Polymer/polymer-cli/issues/98","repository_url":"https://api.github.com/repos/Polymer/polymer-cli","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/98/comments","events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/98/events","html_url":"https://github.com/Polymer/polymer-cli/issues/98","id":154564741,"number":98,"title":"`polymer serve` should only serve app shell if 404'ing URL does not end with file extension","user":{"login":"kevinpschaaf","id":1354932,"avatar_url":"https://avatars.githubusercontent.com/u/1354932?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinpschaaf","html_url":"https://github.com/kevinpschaaf","followers_url":"https://api.github.com/users/kevinpschaaf/followers","following_url":"https://api.github.com/users/kevinpschaaf/following{/other_user}","gists_url":"https://api.github.com/users/kevinpschaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinpschaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinpschaaf/subscriptions","organizations_url":"https://api.github.com/users/kevinpschaaf/orgs","repos_url":"https://api.github.com/users/kevinpschaaf/repos","events_url":"https://api.github.com/users/kevinpschaaf/events{/privacy}","received_events_url":"https://api.github.com/users/kevinpschaaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-12T19:42:41Z","updated_at":"2016-05-12T19:42:41Z","closed_at":null,"body":"The current simple logic to serve the app shell (index.html) for pretty URL's by sending any 404 to the app shell should be tightened a little to avoid really confusing errors:\r\n\r\nUse case: if you import an HTML Import that you haven't properly bower installed, you end up getting the `index.html` which will be evaluated, and can lead to strange errors when the scripts in index.html run again.\r\n\r\nSolution: We should only serve the app shell for URL's that don't end in a file extension like `.html` or `.jpg`, and instead send a 404 for those URL's.  This still allows `http://localhost:8080/home` and `http://localhost:8080/detail/123456` to still serve the app shell."}}