NOP configuration Ali CDN Unicom 4g page Display not full view source code discovery truncated

Source: Internet
Author: User

In the development of a particularly strange problem,

The project uses the NOP framework ,Pavilion theme , then configures Ali Cdn, and then in the case of Unicom 4g , the Apple Mobile page is not completely displayed, This is true of the NOP home page and product detail pages, and the troubleshooting process:

1. Ali CDN set up the source station, the same environment access to the source station is no problem, so always thought is Ali's problem, after contacting Ali's technical support, and did not get the exact results, in the case of tuning DNS, a bit better.

2. After the suspicion is the DNS problem, DNS matters to shut down the server, the fuss is not necessary

3. Start the study of the code, found that the first truncation occurred in the \themes\pavilion\views\shared\_header.cshtml,

var await Component.invokeasync ("Widget"new"theme_header_menu"  });
Theme_header_menu is Pavilion theme band, and no backstage code, observing the source code, found very cumbersome, itself classified particularly large, coupled with the mobile phone and the PC side were reloaded again, HTML huge

, so he rewrote it again, though not reserved

Theme_header_menu all content, but can be continuously updated

After solving this problem, we found that \themes\pavilion\views\home\index.cshtml

@await Component.invokeasync ("homepagecategories")

There was also a truncation, because the site was temporarily unavailable, it was commented out

While this problem does not solve everyone's problems, it can provide a way of thinking.

NOP configuration Ali CDN Unicom 4g page Display not full view source code discovery truncated

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.