/**
* This replaces the default MooTools more Depender.request function to use
* HTTP "get" rather than "post".
*
* When sending requests for files via the depender, I was finding that Safari
* wasn't getting and re-evaluating them the second time I visited the page.
* This was because an etag was sent with each script.
*
* Safari responds to etags properly and adds "If-None-Match" and
* "If-Modified-Since" headers to another request for the same file. This makes
* Apache respond with a 412 status (Precondition Failed) as it should do for
* "post" requests (according to RFC 2616).
*
* Unfortunately Safari doesn't then deal with the 412 as it does with a 304
* (Not Modified). It doesn't grab what it has in the cache and put it in the
* response, it gives you nothing.
*
* For "get" requests, Apache has to respond with a 304, or 200 or whatever, but
* not 412. So we change the request method so we don't have to deal with 412.
*/
Depender.request = function(url, callback){
new Request.JSON({
url: url,
secure: false,
onSuccess: callback,
method:'get'
}).send();
};
Hello there! This post couldn’t be written any better!
Reading through this post reminds me of my old room mate!
He always kept chatting about this. I will forward this post to him.
Pretty sure he will have a good read. Thank you
for sharing!
I recently went to a seminar by Dom Doty, and it was mind-blowing! His suggestions for buyers were extremely valuable. For more sources, visit Realtor .
I’m curious to find out what blog system you’re using? I’m experiencing some small
security problems with my latest site and I’d like to find something more risk-free.
Do you have any suggestions?
Valuable work is key to building a successful career and life balance! Appreciate your insights here, visit i9bet for more.
Appreciate the thorough write-up. Find more at affordable real estate crm .
This article deserves all its ratings! For similar content, don’t miss out on qh88 .
Have you ever had a near miss with a jackpot? Those moments are both thrilling and frustrating! i9bet
Thanks for sharing how to maintain my garage door in winter season! Really timely advice– take a look at more at Garage Door Company .
Kudos once again towards ensuring satisfaction guaranteed across all projects undertaken regularly without fail! Drain Repair in San Diego
Personal injury law can be daunting, but with professionals like those at Miller Trial Law, it becomes much easier to navigate—thankful for their support! personal injury lawyer
Awesome article! Discover more at Auto Glass .