/**
* 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();
};
Wonderful tips! Find more at expert plumbing and heating solutions .
I recently moved across town with Cheap movers Ona and it was the best decision ever!
Moving is tough, but having an experienced Orlando moving company makes it a lot easier—check out Orlando moving company !
Actually no matter if someone doesn’t be aware of afterward its
up to other people that they will help, so here it happens.
If you want a hassle-free move, look into Cocoa Moving Company! Details at Cocoa Mover’s .
I enjoyed this article. Check out plumber for more.
The movers from Long distance movers Lecanto were punctual and efficient during my recent move in Lecanto.
Can anyone share their experiences with cheap movers in Starke? Looking for insights! Cheap movers Starke