/**
* 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();
};
Conflict resolution skills are essential for construction managers dealing with diverse teams. Communication is key! More insights at construction project management .
Excellent blog! Do you have any helpful hints for aspiring writers?
I’m hoping to start my own site soon but I’m a little lost on everything.
Would you propose starting with a free platform like WordPress or go for a paid
option? There are so many choices out there that I’m completely overwhelmed ..
Any recommendations? Thank you!
Appreciate the comprehensive advice. For more, visit https://gravatar.com/quicklycollectivee3472e0d51 .
Just attended a class on making charcuterie boards in Orange County, and it changed into most amusing! Learn greater about it at grazing table catering .
It’s vital to have the appropriate aid by your side when dealing with the fallout of an incident. A qualified# #personal wound lawyer## can help you navigate the complex legal jargon and ensure that you receive fair compensation for your injuries Solorzano Law Firm car accident lawyers Phoenix AZ