docsify
docsify copied to clipboard
‘formatUpdated’ didn't work when deployed
Bug Report
When deploying docs via netlify, it is found that when using formatUpdated, {docsify-updated} is not rendered as expected.
Local testing does not have this problem.
Steps to reproduce
add formatUpdated to the windows.$docsify
window.$docsify = {
coverpage: false,
loadSidebar: false,
loadNavbar: false,
formatUpdated: "{MM}/{DD} {HH}:{mm}"
};
add {docsify-updated} to README.md file
# Home
This is Home Page.
> Last Modified {docsify-updated}
What is current behaviour
{docsify-updated} is rendered as expected
What is the expected behaviour
{docsify-updated} is not rendered as expected
Other relevant information
-
[ ] Bug does still occur when all/other plugins are disabled?
-
Your OS: Windows10
-
Node.js version: v12.16.1
-
npm/yarn version: 6.13.4
-
Browser version: Chrome(102.0.5005.63)
-
Docsify version: 4.4.4
-
Docsify plugins: None
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)
Local test or manual deployment on vps.
Check for the presence of last-modified in the response header

screenshot taken from here https://codesandbox.io/s/romantic-frost-syhtpv


the same as netlify.
Your md file does not have a last-modified header
Thanks a lot for your answer.
So how can I solve this problem through the settings when deploying docsfiy to netlify or CodeSandbox?
I'm not sure about netlify and CodeSandbox, but if you're using GItHub Pages, take a look at https://github.com/docsifyjs/docsify/issues/1157#issuecomment-890467244