I store Access token for authorization in javascript localStorage. Every time when my frontend app loaded I want get this token for get user.
created() {
let access = localStorage.getItem('access')
console.log(access)
if (!access) {
console.log('access not exists')
} else {
console.log('access exists:', access)
}
}
But this token should has overwrited quite often. And when I clean this token because user logout I should get null value in Access. But chrome cache this value and 'if' block still get token like existed.
This what i see in console:

How I can get uncached value? Or I should leave this. And it will disturb in production?