-
Notifications
You must be signed in to change notification settings - Fork 12k
Server returns 404 when performing HEAD request #5170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also have this issue. Easy to verify using a stock project created with ng new ... . Totally breaks my dev workflow. |
Some more info: My problem relates to a static |
Fixed: Moved some hidden |
Applies to all requests, not just HEAD: #5064 The issue seems to be a breaking change of looking for assets under a different path than before (now requiring |
@evelbulgroz @Daedalon that change should not be reverted. Only assets that are part of a build should be served. I can't seem to repro this. I put an image in
|
@filipesilva perform a curl
|
@filipesilva Could you clarify what you mean? The URLs for assets are broken due to this change and unfortunately I didn't yet understand what your sentence means in this context. The alternatives I see are:
|
@Daedalon i agree to the points presented especially number 1 where it would break everything that depends on |
@exequiel09 It might be that the @Daedalon the change I mentioned prevented files that were not in a build from being served from |
FWIW, I was able to reproduce this using the Web Technology Notifier chrome extension... I disabled the extension and the HEAD request was no longer being made. |
If you still hit this problem, you can explore customizing your build with ngx-build-plus. Alternatively, we can close the issue? |
No longer relevant to me, thanks. |
Thanks for the response! |
This issue is there and I did not find any simple ways of achieving it. Kindly reopen this issue |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
ng serve
using (cURL, fetch, Angular HTTP, XHR) and it will automatically return 404.Mention any other details that might be useful.
When the URL provided is: http://localhost:4200/assets/img/ui/logo.png (assuming it exists) it returns 404. But when the URL provided is: http://localhost:4200/src/assets/img/ui/logo.png it returns 200.
The text was updated successfully, but these errors were encountered: