-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/dotnet8 angular18 #5
base: main
Are you sure you want to change the base?
Feature/dotnet8 angular18 #5
Conversation
README.md
Outdated
|
||
| `dotnet new angular` | `dotnet new f23-angular-material` | | ||
| --- | --- | | ||
| ❌ Slow inner-loop dev experience with the proxy and HTTPS cert startup code | ✅ Fast inner-loop with separate processes for ASP.NET and `npm start` (see README in generated project) | | ||
| ❌ Angular proxy code does not match how it's usually used when deployed to production | ✅ Closer match to production | | ||
| ❌ Does an `npm install` on launch | ✅ Faster launch by letting you run `npm i` only when needed | | ||
| ❌ Angular v12 | ✅ Angular v16 | | ||
| ❌ Angular v12 | ✅ Angular v18 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the ASP.NET built-in template uses a version as ancient as v12 any more, but I'm unsure what version it's currently on.
@@ -34,8 +34,8 @@ | |||
if (context.File.Name == "index.html") | |||
{ | |||
// more info on this header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#preventing_caching | |||
context.Context.Response.Headers.Add("Cache-Control", "no-store, max-age=0"); | |||
context.Context.Response.Headers.Add("Expires", "-1"); | |||
context.Context.Response.Headers.Append("Cache-Control", "no-store, max-age=0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm familiar with the warning this is addressing, but is Append
appropriate here or should we be using the indexer to set (overwrite) the values if they already exist in the dictionary?
MIgrate to .NET 8 and Angular 18. Fixes #4