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

12,290 thoughts on “MooTools Depender, Safari, etags and 412 Precondition Failed

  1. Hello studs! I’m Brandon, and I just discovered this
    next-level gay chat at BubiChat. ️‍

    No cap, I was bored af when I stumbled on this actually fun chatroom.
    Way hotter than those sketchy dating apps!

    At BubiChat, you can:
    Get dirty with jacked guys RIGHT NOW
    No judgment – just down-to-earth dudes
    Stay discreet if you’re just exploring

    Slide into my DMs there and let’s swap stories!

    Who knows we’ll Netflix & chill?

    Pro tip: It’s stupid easy to join – no
    “premium upgrade” scams, just fun guys like us.

    Don’t ghost me, daddy! I’m biting my lip at https://bubichat.com/gay-chat/

    XOXO,
    Brandon

  2. I would like to thank you for the efforts you have put in writing this website.
    I am hoping to check out the same high-grade content from you in the future as well.

    In truth, your creative writing abilities has inspired me to get my own site now ;)

  3. Howdy, i read your blog occasionally and i own a similar one and
    i was just curious if you get a lot of spam feedback? If so how do you protect
    against it, any plugin or anything you can suggest?
    I get so much lately it’s driving me crazy so any assistance is very much appreciated.

  4. Hello there! Quick question that’s totally off topic. Do you know how to make your site mobile friendly?

    My blog looks weird when browsing from my iphone 4.

    I’m trying to find a template or plugin that might be able to correct this
    issue. If you have any suggestions, please share. Many thanks!

    Here is my web page; Packaging Machinery

  5. Hi to every body, it’s my first visit of this web site; this web site contains awesome and
    actually good material in support of visitors.

  6. Hello, i think that i saw you visited my web site so
    i came to “return the favor”.I am trying to find things to improve my website!I suppose its
    ok to use some of your ideas!!

  7. I don’t even know how I ended up here, but I thought this post was great.
    I do not know who you are but definitely you are going to a famous blogger if you are not already ;) Cheers!

  8. order fluconazole 150mg online cheap buy fluconazole 200 mg sale fluconazole 400 mg pills

  9. I’ve been exploring for a bit for any high quality articles or blog posts in this sort of house .

    Exploring in Yahoo I at last stumbled upon this site.
    Reading this information So i am happy to express that I have an incredibly
    just right uncanny feeling I discovered exactly what I needed.
    I most for sure will make sure to don?t overlook this website and provides it
    a glance regularly.

  10. Unquestionably imagine that that you stated. Your favorite justification appeared
    to be on the web the easiest thing to have in mind of.
    I say to you, I certainly get irked at the same
    time as folks consider issues that they just do not know about.
    You controlled to hit the nail upon the top and outlined
    out the whole thing with no need side effect , other people
    can take a signal. Will probably be back to get more. Thank you

  11. Awesome blog! Do you have any hints for aspiring writers?
    I’m planning to start my own blog soon but I’m a little
    lost on everything. Would you advise starting with a
    free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed ..
    Any tips? Many thanks!

  12. you’re in point of fact a good webmaster.
    The website loading pace is incredible. It seems that you’re doing any distinctive trick.
    Moreover, The contents are masterwork. you have done a great process in this topic!

  13. На сайте https://my-miele-shop.ru/ представлена продукция известной марки Miele, которая особенно пользуется популярностью среди тех, кто ценит функциональность, надежность и практичность. В разделе вы найдете встраиваемые холодильники, стиральные, сушильные машины, кофемашины, пароварки, выполненные из нержавеющей стали, духовые шкафы и многое другое для того, чтобы организовать комфортное пространство. Ознакомьтесь с теми товарами, которые находятся в тренде, и их покупает большинство.

  14. When I originally commented I seem to have clicked the -Notify me when new comments are
    added- checkbox and now whenever a comment is added I receive four emails with the same comment.
    There has to be an easy method you are able to remove me from that service?

    Thanks!

  15. Hi there! This is my first visit to your blog! We are
    a collection of volunteers and starting a new project in a community in the same
    niche. Your blog provided us valuable information to work on.
    You have done a marvellous job!

  16. Hi my family member! I want to say that this article is
    awesome, nice written and come with approximately all important infos.
    I would like to look more posts like this .

  17. Hey! Do you use Twitter? I’d like to follow you if that would be
    ok. I’m definitely enjoying your blog and look forward to
    new updates.

  18. This is really interesting, You’re an excessively skilled blogger.
    I have joined your rss feed and look forward to searching for more of your great post.
    Also, I’ve shared your site in my social networks

  19. Hey There. I found your weblog the use of msn. That is an extremely neatly written article.
    I’ll make sure to bookmark it and return to learn extra of your useful information. Thank you
    for the post. I will certainly return.

  20. I am no longer certain the place you are getting your information, however great topic.
    I needs to spend a while studying much more or understanding more.
    Thanks for great info I used to be looking for this information for my mission.

  21. База цветов https://rynokcvetov.ru/ – ваш надежный поставщик свежих цветов в Санкт-Петербурге. Предлагаем широкий ассортимент роз, хризантем, тюльпанов и сезонных цветов по оптовым ценам. Прямые поставки, удобный самовывоз и быстрая доставка по городу. Работаем с флористами, салонами и магазинами.

  22. Hello there, I found your website by way
    of Google at the same time as searching for a similar subject,
    your site came up, it looks great. I have bookmarked it in my google bookmarks.

    Hello there, just turned into aware of your blog via Google, and located
    that it’s really informative. I’m going to be
    careful for brussels. I will appreciate when you proceed
    this in future. A lot of people shall be benefited from your writing.

    Cheers!

  23. Pretty section of content. I just stumbled upon your site and in accession capital to assert that I
    acquire actually enjoyed account your blog posts. Anyway I will be subscribing to
    your feeds and even I achievement you access consistently fast.

  24. I savor, cause I found exactly what I was looking
    for. You’ve ended my 4 day long hunt! God Bless you man. Have a nice day.
    Bye

  25. Hmm is anyone else having problems with the
    images on this blog loading? I’m trying to figure out if its
    a problem on my end or if it’s the blog. Any feedback would be greatly appreciated.

  26. I go to see every day a few websites and websites to read posts,
    but this website gives quality based articles.

  27. I’m not that much of a online reader to be honest but your blogs really nice,
    keep it up! I’ll go ahead and bookmark your site to come back down the road.
    All the best

  28. If you would like to increase your know-how just keep visiting
    this web page and be updated with the latest news posted here.

  29. Hmm it looks like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I wrote
    and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog writer but I’m still new to the
    whole thing. Do you have any helpful hints for newbie blog
    writers? I’d certainly appreciate it.

  30. Today, I went to the beach front with my kids. I found a sea shell
    and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the
    shell to her ear and screamed. There was a hermit crab
    inside and it pinched her ear. She never wants to go back!
    LoL I know this is totally off topic but I had to tell
    someone!

  31. I have read so many posts concerning the blogger
    lovers but this article is truly a pleasant article, keep it up.

  32. I know this web site offers quality based articles and other material, is
    there any other web page which presents these things in quality?

  33. I every time used to study article in news papers
    but now as I am a user of net so from now I am using net for content,
    thanks to web.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>