MooTools Depender, Safari, etags and 412 Precondition Failed

/**
* 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();
};

24,935 thoughts on “MooTools Depender, Safari, etags and 412 Precondition Failed

  1. of course like your web site however you need to take a look at the spelling on several of your posts.
    Several of them are rife with spelling issues and I in finding it very troublesome to tell the
    truth however I will certainly come again again.

  2. My experience with BlckPanda Creative Dallas has been nothing short of amazing! My website’s Google ranking improved tremendously, and my business is thriving. Discover more at seo .

  3. Heya i am for the first time here. I found this board and
    I to find It really useful & it helped me out a lot. I am hoping
    to offer one thing again and aid others like you aided me.

  4. You can finally stream mew slut xxx without restrictions. Searching for Mew Slut gifs and footjob clips?. Mew Slut full scenes no paywalls. New gifs and full porn from Mew Slut. Watch Mew Slut girlfriend experience full. Stream deepthroat blowjob and creampie now. Experience the hottest Mew Slut porno ever. Leaked videos and nudes in one hub. Mew Slut complete leaks in one click https://mewslut.online/.

  5. Honoring diverse perspectives enriches conversations held throughout spaces dedicated solely towards empowering individuals seeking help navigating through complexities surrounding these matters consistently!!## 任何关键字 CoolSculpting

  6. Your means of explaining everything in this article is actually good, all can simply be aware of it,
    Thanks a lot.