Title: Dev server (ng serve) should return HTTP 404 for assets requests for broken/non-existent urls · Issue #2989 · angular/angular-cli · GitHub
Open Graph Title: Dev server (ng serve) should return HTTP 404 for assets requests for broken/non-existent urls · Issue #2989 · angular/angular-cli
X Title: Dev server (ng serve) should return HTTP 404 for assets requests for broken/non-existent urls · Issue #2989 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS El Capitan Versions. Please run ng --version. If there's nothing outputted, please run in a Termi...
Open Graph Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS El Capitan Versions. Please run ng --version. If there's ...
X Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS El Capitan Versions. Please run ng --version. If there...
Opengraph URL: https://github.com/angular/angular-cli/issues/2989
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dev server (ng serve) should return HTTP 404 for assets requests for broken/non-existent urls","articleBody":"\u003e Please provide us with the following information:\r\n\u003e ---------------------------------------------------------------\r\n\r\n### OS?\r\n\u003e Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\n\r\nMacOS El Capitan\r\n\r\n### Versions.\r\n\u003e Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\r\n\r\n```\r\nangular-cli: 1.0.0-beta.19-3\r\nnode: 6.7.0\r\nos: darwin x64\r\n```\r\n\r\n### Repro steps.\r\n\u003e Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\r\n\r\nbuild an app and in the html template load an image that doesn't exist in the source repo\r\n\r\n```\r\n\u003cimg src=\"does/not/exist\"\u003e\r\n```\r\n\r\n### The log given by the failure.\r\n\u003e Normally this include a stack trace and some more information.\r\n\r\ndev server (ng serve) responds with HTTP 200 (and serves the contents index.html in the response) instead of HTTP 404.\r\n\r\n### Mention any other details that might be useful.\r\n\r\nPlease see https://github.com/johnpapa/lite-server/issues/51 for explanation of why this results in very poor development experience and suggested fixes.\r\n\r\n\u003e ---------------------------------------------------------------\r\n\u003e Thanks! We'll be in touch soon.\r\n","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2016-11-02T19:40:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2989/angular-cli/issues/2989"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19ea79bd-3512-1d6d-2351-52043f87a686 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0E0:1BAE04:425DB5:5D9083:697777F1 |
| html-safe-nonce | dce585e26aed7ae232456d918d8bdd247b64cc316c33261b28bcd904fc715e45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEUwOjFCQUUwNDo0MjVEQjU6NUQ5MDgzOjY5Nzc3N0YxIiwidmlzaXRvcl9pZCI6IjMyNDcwNzM3MzgwMDgwMDA0OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ff4c717535ddac43e75fcaef231edad892d7fbf00990b073f82e84cb6692549a |
| hovercard-subject-tag | issue:186900321 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/2989/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8baa7aec477f294c3637c2120911350fef6ede3fd899e6fd772529f1fdc59feb/angular/angular-cli/issues/2989 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8baa7aec477f294c3637c2120911350fef6ede3fd899e6fd772529f1fdc59feb/angular/angular-cli/issues/2989 |
| og:image:alt | Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS El Capitan Versions. Please run ng --version. If there's ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IgorMinar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9fea6af76c6e24ca5c5728a18d4220d768790d04abe1ba6aafa18526daff96e7 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0bc7a371bc0035e2253b0269926586e60cf8a4ac |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width