I am writing a browser plugin using NPAPI and as part of the plugin I need to download a file. For this I have been using the NPN_GetURL function out of the NPNetscapeFuncs structure provided to my plugin after it is loaded.
This works fine except that if the file has already been downloaded, Firefox seems to always pull the file out of the local cache rather than off of the provided URL. And this happens regardless of what request mode I give it in the NPP_NewStream function that I've defined.
Is it possible to bypass the cache or am I left using other methods to download the file? Ideally it would only download if a newer version exists on the server (and otherwise take it out of the cache) but right now I would settle for always downloading.