使用cloudflare pages部署站点会导致所有页面的最后更新时间一致的问题 #4973
-
即使本地部署可以看到每个页面的更新时间是不同的,但通过cf pages部署后,每个页面上的更新时间都会一致显示为最后提交更新的时间 |
Beta Was this translation helpful? Give feedback.
Answered by
brc-dd
Oct 6, 2025
Replies: 1 comment 6 replies
-
Read the note on top of https://vitepress.dev/reference/default-theme-last-updated Chinese version is outdated, so you might need to use some translator. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, very weird. Is the site/repo public? Can you try deploying again or maybe clearing your browser cache? If the build logs are accessible, does it show any git fetch step? Does your GitHub repo show correct history?
It seemed to work fine fine for others - https://blog.cat73.org/posts/2024/05-cloudflare-vitepress-lastupdate, https://neon-blog.pages.dev/miscellaneous/vitepress_fix_cloudflare_page_lastUpdated_display_error, #3580