Fix VitePress Exception Caused by HTML Compression

1. Problem description

HYdration completed but contains mismatches.

This is an error reported by Chrome Devtools, and when the user visits, an abnormal page will be displayed. The specific performance is that each page (taking the homepage as an example) will have two identical contents. When Ajax switches pages, the following page will be replaced with a new one. page, the page above is still the home page.

2. Solution

Turn off HTML compression in the Cloudflare console.

Navigation Bar-Speed-Optimization-Auto Minify

After testing, this problem can be solved perfectly.

Fix VitePress Exception Caused by HTML Compression

https://blog.tsinbei.com/en/archives/740/

Author
Hsukqi Lee
Posted on

2023-06-22

Edited on

2023-06-22

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
None yet