site optimization

Optimize http requests

  • By merging multiple small pictures into one large picture, and using CSS positioning to find different small pictures, it can reduce http requests
  • Try to put the css code and js code of the same logic in the same file, which can also reduce http requests
  • Images, js, css and other static resource files can be cached through CDN to reduce HTTP requests

Optimize the size of each http request resource

  • IIS will enable GZip static resource compression by default
  • Try to optimize image resources without distortion (reduce the size of the image, firework can achieve)
  • Try to use the compressed js and css files after the website is published

Front page cache

net has outputcache function that can be directly implemented

data cache

  • Database cache dependencies
  • file cache dependencies
  • Absolute expiration time invalidates the cache
  • Relative expiration times invalidate the cache

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325074003&siteId=291194637