How do you force Firefox to not cache or re-download a Silverlight XAP file?

后端 未结 17 719
渐次进展
渐次进展 2020-11-29 02:07

When working with Silverlight, I\'ve noticed that Firefox will cache the XAP file, so if I do an update, a user may be stuck using an outdated version. Is there a way to fo

17条回答
  •  生来不讨喜
    2020-11-29 02:37

    This is what I do in php. You read the date/time of the xap file, and append it as a parameter to the download link. In that way the browser sees new file versions as new links, and therefore not in its cache.

    
    
    
    

    Simple and it works. Also, browsers continue to cache correctly when there are no updates to download.

提交回复
热议问题