Actually, the wiki <http://wiki.greasespot.net/Metadata_Block#.40resource> does correctly indicate exactly how @resource is handled: /"Each @resource is downloaded once, when the script is installed, and stored on the user's hard drive alongside the script./"



On 4/13/2015 8:48 PM, GmUser wrote:
I found some information about this.

Apparently Gm DOWNLOADS A SNAPSHOT of that file.
It's not good that that behavior is not specified in the wiki.

Someone suggested changing the version of the userscript to
"cause everything to download again".
(when someone asked for some type of a "caching fix")
I think that's a little ridiculous. (although it apparently works)

I checked, and the file had been downloaded into the directory
the userscript was in, so I deleted it, thinking that would cause it
to re-download the missing file, but it does not.

I call that a bug.

At the very least it should notice that the file is non-existent and re-download it.


On Monday, April 13, 2015 at 6:18:16 PM UTC-7, GmUser wrote:

    I have a user script with:

    @resource      bmlib http://127.0.0.1/bm/bmlib.js

    I changed the file and it's not loading in the most recently
    modified file.

    In a bookmarklet, I was referncing it as:
    'http://127.0.0.1/bm/bmlib.js?' + Math.floor (Math.random() * 99999)
    to make sure it didn't cache it and always got a new copy.

    Is there any way to do this with resources?

    I didn't see any information in the wiki about how it is caching
    these files.
    (or how it "assumes/knows" Firefox/Pale Moon is caching them)

--
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

z

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to