scajanus / moonboardsearch

Search-by-holds for Moonboard
2 stars 0 forks source link

Safari still caching (-> not updating) AJAX requests? #18

Closed scajanus closed 4 years ago

timparkin commented 4 years ago

Hmmm - no idea. How were you planning on making it sessionstorage free?

scajanus commented 4 years ago

Safari is very aggressive in using cached results, so something like this needs to be done: https://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results?rq=1

not sure if 'nocache' or 'no-cache' in the request parameters is not enough...

(Not) using sessionstorage should not have anything to do with this.

scajanus commented 4 years ago

Hmmm - no idea. How were you planning on making it sessionstorage free?

Since all happens on a single page, javascript variables are persistent.

timparkin commented 4 years ago

I've added a @never_cache decorator to each of the page response functions.. Hopefully this will work. Committed just now