Skip to content

‘formatUpdated’ didn't work when deployed #1813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
pfeak opened this issue Jun 3, 2022 · 6 comments
Closed
1 task

‘formatUpdated’ didn't work when deployed #1813

pfeak opened this issue Jun 3, 2022 · 6 comments

Comments

@pfeak
Copy link

pfeak commented Jun 3, 2022

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

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Local test or manual deployment on vps.

@sy-records
Copy link
Member

Check for the presence of last-modified in the response header
image

@pfeak
Copy link
Author

pfeak commented Jun 3, 2022

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

ERV`G3GSDSOTJ S)C3~761B

SW_NU$ YU%GR7AVRGS`07

@pfeak
Copy link
Author

pfeak commented Jun 3, 2022

the same as netlify.

@sy-records
Copy link
Member

Your md file does not have a last-modified header

@Koooooo-7 Koooooo-7 removed the bug confirmed as a bug label Jun 5, 2022
@pfeak
Copy link
Author

pfeak commented Jun 5, 2022

Thanks a lot for your answer.
So how can I solve this problem through the settings when deploying docsfiy to netlify or CodeSandbox?

Edit 307qqv236

@sy-records
Copy link
Member

I'm not sure about netlify and CodeSandbox, but if you're using GItHub Pages, take a look at #1157 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants