In addition, IIS 7 cannot compress js files.

Source: Internet
Author: User

Today, we have encountered the problem that IIS 7 cannot compress js files. In IIS 7, static content compression has been enabled, but access in the browser has not taken effect.

I remember that I had encountered this problem before and didn't think of a solution...

Later, I remembered that the. js settings in the default MIME Types of IIS 7 were incorrect. See:

Change application/x-javascript to application/javascript to solve the problem.

Remember: To solve the problem, you must record it with a blog. Otherwise, if you forget the solution to the problem you have solved before, it will be depressing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.