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

后端 未结 17 722
渐次进展
渐次进展 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条回答
  •  猫巷女王i
    2020-11-29 02:31

    A super simple idea: just add a fake query string to the url.

    
    

    Most servers should ignore it and server the file normally--depends on your server. If you get really clever, you could make the hosting page dynamic and automatically append a tick-count or date-time string to the query string. This ensures that you get caching when you want it, but force a download when there's a change.

    Ideally, your server should do this for you. But if not...

提交回复
热议问题