File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 138138 function _resetCacheIfNeeded ( ) {
139139 window . cacheClearError ;
140140 const cacheKey = "browserCacheVersionKey" ;
141- const newCacheVersion = "V7 " ; // just increment this number to V2, v3 etc. to force clear the cached content.
141+ const newCacheVersion = "V8 " ; // just increment this number to V2, v3 etc. to force clear the cached content.
142142 const lastClearedVersion = window . localStorage . getItem ( cacheKey ) ;
143143 if ( lastClearedVersion === null ) {
144144 // setup First load flag, no cache, return.
173173 // and might not load new css classes if we don't reset. less doesn't cache in localhost.
174174 totalWaitTime += waitTime ;
175175 if ( window . less && less . refresh ) {
176+ localStorage . setItem ( cacheKey , newCacheVersion ) ;
177+ localStorage . setItem ( LESS_REFRESH_SCHEDULED_KEY , "yes" ) ;
176178 less . refresh ( true ) . finally ( ( ) => {
177- localStorage . setItem ( cacheKey , newCacheVersion ) ;
179+ localStorage . setItem ( LESS_REFRESH_SCHEDULED_KEY , "no" ) ;
178180 location . reload ( ) ;
179181 } ) ;
180182 clearInterval ( intervalTimer ) ;
You can’t perform that action at this time.
0 commit comments