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