Compare commits

..

1 commit

Author SHA1 Message Date
cinwell.li
28d094200c
docs: about cache 2019-05-22 15:38:50 +08:00
2 changed files with 13 additions and 1 deletions

View file

@ -454,6 +454,18 @@ window.$docsify = {
}; };
``` ```
Such as setting the cache
```js
window.$docsify = {
requestHeaders: {
'cache-control': 'max-age=600'
}
};
```
## ext ## ext
- type: `String` - type: `String`

View file

@ -15,7 +15,7 @@ It is recommended that you save your files to the `./docs` subfolder of the `mas
![github pages](_images/deploy-github-pages.png) ![github pages](_images/deploy-github-pages.png)
!> You can also save files in the root directory and select `master branch`. !> You can also save files in the root directory and select `master branch`.
You'll need to place a `.nojekyll` file in the deploy location (such as `/docs` or the gh-pages branch) You'll need to place a `.nojekyll` file in the deploy location (such as `/docs` or the gh-pages branch
## GitLab Pages ## GitLab Pages