Setting response code for SPA static file to 404?
Hi, I have a problem - I need ngsw.config missing file to return 404 instead of SPA 200 with index.html. I tried it setting with OnPrepareResponse but apparently you cannot change status code there? SPA site is hosted on IIS. How can I make non existing file ngsw.config return 404 status code? Startup.cs part (the one if(context.File.Name.StartsWith("ngsw.json"))):
0 Replies