Skip to content

Commit

Permalink
fix: cache problem (attempt 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tc-imba committed Jun 25, 2024
1 parent 0d122fb commit d8e51e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
introduction: [
'You can write one or several paragraphs to introduce yourself here. You can find this introduction in the `config.js` file in the template.',
'In this site, almost everything supports Markdown Syntax. For example, you can add hyperlinks in the introduction such as [fxhsb](https://github.com/Reapor-Yurnero) with\n```markdown\n[fxhsb](https://github.com/Reapor-Yurnero)\n```',
'Here we try to test whether reloading is enabled when site updated (1).',
'Here we try to test whether reloading is enabled when site updated (2).',
],
avatar: 'avatar.png',
professions: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const wrapPageElement = _wrapPageElement;

// trigger an immediate page refresh when an update is found
export const onServiceWorkerUpdateReady = () => {
window.location.reload();
console.log('update found, reload the page');
window.location.reload();
};
File renamed without changes.

0 comments on commit d8e51e6

Please sign in to comment.