camsong / fetch-ie8

A window.fetch JavaScript polyfill supporting IE8
MIT License
279 stars 33 forks source link

fetch cache ie8 #6

Closed xiehurricane closed 8 years ago

xiehurricane commented 8 years ago

@camsong I set {cache:'no-store'} in fetch options,but IE8 always load resource from cache(request param is the same,but cookie not. It's a new user). I want to get resource from server. Could you help me with this?

camsong commented 8 years ago

It uses XMLHttpRequest in IE8 as a polyfill, which can not recognise {cache:'no-store'}. The general way to do no cache in IE8 is add a timestamp at the end of url. you may try:

fetch('/url' + '?_=' + Date.now())
xiehurricane commented 8 years ago

@camsong Thanks