Skip to content

github page stays the same after file update #602

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
andrecarlucci opened this issue Aug 7, 2018 · 6 comments
Closed

github page stays the same after file update #602

andrecarlucci opened this issue Aug 7, 2018 · 6 comments

Comments

@andrecarlucci
Copy link

Hi guys,

I hosted my docs pages using Github's pages.
It's working fine, but every time I create/update some file on Github, its changes are not reflected on the live version.

The only way to see the changes is if I manually delete all the local storage of my browser. Is it by design?

My documentation will change a lot and my user's won't know how to do that themselves. Any workaround or configuration?

Thanks for this great project!

@JollyGrin
Copy link

Does the page still not update hours later?

I sometimes have a similar issue, yet if I wait a few hours then the newest version is available. I think it's github's servers, not this library (assuming we have the same problem)

@timaschew
Copy link
Member

Usually your browser is caching some content, it depends on the HTTP headers.
@QingWei-Li do you have anything to add?

BTW: For me a hard reload works (chrome on mac: shift + cmd + r)

@QingWei-Li
Copy link
Member

We can set the cache-control header on request.

https://docsify.js.org/#/configuration?id=requestheaders

window.$docsify = {
  requestHeaders: {
    'cache-control': 'no-cache'
  }
};

@Levent0z
Copy link

This works with sidebar updates, but doesn't seem to work with the main README.md file.

@ibirnam
Copy link

ibirnam commented Jan 14, 2021

@Levent0z - were you able to get it working with the main README?

@QingWei-Li - Any suggestions?

Appreciate all your help!

@sy-records
Copy link
Member

Looks like normal

image

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

Successfully merging a pull request may close this issue.

7 participants