Skip to content

Commit

Permalink
updated cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xankit committed Mar 17, 2022
1 parent dd8d47d commit 19904b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Empty file added script.sh
Empty file.
6 changes: 6 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ const App = () => {
const location = useLocation();

// changing header
const CURRENT_VERSION = "v0.1.3"
console.log(CURRENT_VERSION)
if (localStorage.getItem("VERSION")< CURRENT_VERSION || localStorage.getItem("VERSION") == null){
localStorage.clear();
localStorage.setItem("VERSION", CURRENT_VERSION);
}

// scrolling to top on every page change
useEffect(() => {
Expand Down

0 comments on commit 19904b6

Please sign in to comment.