TTFB Improvement for ASP.NET Websites

enter image description hereTrying to figure out why my site is so slow is an empty asp.net template using a bootstrap theme. Not using any database or Entity Framework, so I don’t understand why a simple asp.net site can be so slow.

It seems that TTFB (time to the first byte) reaches 15-20 seconds. Sometimes a site runs quickly, but often after a while the site slows down, and I understand that IIS pauses the use of the application pool.

The problem is that I use Host4Asp and GoDaddy hosting, both have this problem and I cannot access IIS to configure it as hosting. I created the same site in PHP and it loads instantly, every time.

webconfig CacheOutput .

<system.webServer>
  <staticContent>
    <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
  </staticContent>
  <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
  <httpProtocol>
    <customHeaders>
      <add name="Cache-Control" value="public" />
    </customHeaders>
  </httpProtocol>
</system.webServer>

, , TTFB asp.net, , IIS, . , asp.net , VPS .

GitHub, , . https://github.com/devfunkd/zenwire

+4
2

, - . - , , .

+2
  • CDN, , AWS Cloudfront Azure CDN
  • DNS-, , Amazon Route 53 DNS
0

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


All Articles