How do I know most of the javascript and css files used?

How do I know which all Javascript and CSS files are being called by clients from the IIS server? Can this be done via httpmodule?

Basically, I want to know that when a client accesses the server, I want to know which files are consumed mainly along with their size and the time taken to complete the request.

+4
source share
1 answer

I think the fastest way to do this is: In the IIS Management Console, make sure that logging is enabled, and set it to the right place. After a short delay, the log files will appear, import them into the database and begin to analyze. You can choose which fields you want to keep.

Alternatively, if you want to have more control and do it in real time, you can create a handler or module, but you will also need to make sure that all requests, including static content, go through an ASP processor that will create quite some overhead. Time and performance are not highly recommended for dev, but it will work.

+2
source

Source: https://habr.com/ru/post/1605927/


All Articles