Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Few questions about Kestrel

$
0
0

Hello, I need to create an application based on .NET core 2.0 but I stuck on configuring platform. I have some tasks which are milestones in my app so please help.

1) My index.html page contains specified strings (variables) f.e. <!--[THISISMYVARIABLE]--> which I need to replace on runtime each time this file is downloading. So what I need to do is override standard Kestrel file serving with this template: catch request file, open it then change it contents and send to client. I found a partial solution here: https://stackoverflow.com/questions/40019012/modify-static-file-response-in-asp-net-core but some of the serving files will be larger than 100mb so I need to find better performance solution. Could you help?

2) I noticed that Kestrel copies all static html/js files from folders in solution into wwwroot. The problem is that my static files are very large and I don't want them in wwwroot directory. How can I prevent that behavior?

Regards


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>