how to ignore cache when using GM_xmlhttprequest in Greasemonkey

65 views
Skip to first unread message

Prakash Ranganthan

unread,
Dec 14, 2012, 12:14:56 AM12/14/12
to greasemon...@googlegroups.com
Hi Friends,

I am accessing a text file from a server but when I use the ignorecache: true option, but it fails to ignore cache can anyone assist me to get it work

here is my code


GM_xmlhttpRequest({
    method: 'GET',
    url: 'http://****t/Test.txt',
    ignoreCache: true,
    headers:
            {
                'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
                'Accept':'text/plain',
                },
    onload: function(responseDetails)

Prakash Ranganthan

unread,
Dec 14, 2012, 12:17:56 AM12/14/12
to greasemon...@googlegroups.com
Also let me know how I can track time like when a user loads a page I should show them a start button and it start should track time when user clicks the start button and it should stop when user clicks a submit button which is already in the page by default and save the details to a csv file or text file. Thanks in advance.

Matt Sargent

unread,
Dec 14, 2012, 9:36:17 PM12/14/12
to greasemon...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "greasemonkey-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/greasemonkey-users/-/nOVWqbk4gVkJ.
> To post to this group, send email to greasemon...@googlegroups.com.
> To unsubscribe from this group, send email to
> greasemonkey-us...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.

You don't need a process that starts and stops. You just need to save
the times when the two buttons are pressed, and subtract the start time
from the end time.
Reply all
Reply to author
Forward
0 new messages