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

8,189 thoughts on “MooTools Depender, Safari, etags and 412 Precondition Failed

  1. Роскошные шторы для любого интерьера сшить шторы на заказ сшить шторы на заказ . Ткацкий

  2. недорогой интернет новосибирск novosibirsk-domashnij-internet002.ru домашний интернет подключить новосибирск

  3. Excellent blog! Do you have any hints for aspiring writers?
    I’m hoping to start my own website soon but
    I’m a little lost on everything. Would you recommend starting with a free platform
    like WordPress or go for a paid option? There are so many options out there that I’m
    totally overwhelmed .. Any tips? Kudos!

  4. Элитные шторы на заказ для взыскательных клиентов сшить шторы на заказ сшить шторы на заказ . Ткацкий

  5. Thanks for any other informative web site. The place else could I am getting that type of information written in such a
    perfect method? I’ve a mission that I’m just now working on, and I have been on the look out for such info.

  6. Ощутите себя капитаном, отправившись в незабываемое плавание!

    К вашим услугам
    прокат по казани реке на теплоходе цена расписание для захватывающих приключений.

    С нами у вас есть возможность:
    • Окунуться в красоту окружающих видов, путешествуя на различных плавсредствах.

    • Отметить важное торжество в оригинальной и запоминающейся манере.

    • Провести незабываемый вечер в романтической атмосфере.

    • Собраться с близкими друзьями для веселого время провождения.

    Наши суда отличаются:
    ✓ Опытными и квалифицированными командами.

    ✓ Высоким уровнем комфорта,
    созданным для вашего удобства.

    ✓ Обеспечением полной безопасности на протяжении всего
    плавания.
    ✓ Привлекательным внешним видом и стильным
    дизайном.
    Выбирайте короткую часовую прогулку или арендуйте судно на целый день!
    Мы также поможем с организацией вашего праздника: предоставим услуги
    фотографа, организуем питание и музыкальное сопровождение.

    Подарите себе и своим близким незабываемые моменты!

    Закажите ваше водное приключение прямо
    сейчас!

  7. Hello! Quick question that’s entirely off topic.
    Do you know how to make your site mobile friendly?
    My website looks weird when viewing from my iphone 4.
    I’m trying to find a template or plugin that might be able to fix this problem.
    If you have any suggestions, please share. Cheers!

  8. Hi there I am so glad I found your site, I really
    found you by error, while I was looking on Bing for something else, Regardless I am
    here now and would just like to say kudos for a remarkable post and a all round thrilling blog (I also love the theme/design), I don’t
    have time to go through it all at the moment but I have bookmarked it and also included your RSS feeds,
    so when I have time I will be back to read more, Please do keep up the awesome job.

  9. подключить домашний интернет в новосибирске novosibirsk-domashnij-internet003.ru домашний интернет тарифы новосибирск

  10. Today, I went to the beachfront with my children. 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 completely off topic
    but I had to tell someone!

  11. I think this is one of the most important info for me.

    And i am glad reading your article. But want to remark
    on few general things, The website style is ideal, the articles is really excellent : D.
    Good job, cheers

  12. Oh my goodness! Impressive article dude!

    Thank you so much, However I am experiencing issues with your RSS.
    I don’t know the reason why I can’t join it.
    Is there anybody having identical RSS problems? Anybody
    who knows the solution will you kindly respond?
    Thanx!!

  13. link porno grafilink porno grafilink porno grafi link
    porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi
    link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink porno
    grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link
    porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link
    porno grafilink porno grafilink porno grafi link porno grafilink porno
    grafilink porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink porno grafi
    link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno
    grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno
    grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno
    grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link
    porno grafilink porno grafilink porno grafi link porno grafilink
    porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink
    porno grafi link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi link
    porno grafilink porno grafilink porno grafi link porno
    grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi
    link porno grafilink porno grafilink porno grafi link porno grafilink porno grafilink porno grafi

  14. Воплотите мечты о идеальных шторах на заказ шторы на заказ шторы на заказ . 7 499 460-69-87

  15. It’s difficult to find knowledgeable people on this subject, however, you seem like you know what you’re
    talking about! Thanks

  16. подключить интернет в омске в квартире omsk-domashnij-internet001.ru домашний интернет в омске

  17. Hi I am so excited I found your blog page, I really found you by accident, while I
    was researching on Aol for something else, Regardless I am here now and would just like to say many thanks for a tremendous post and a all round interesting blog
    (I also love the theme/design), I don’t have time to look over it all at the minute
    but I have book-marked it and also added in your
    RSS feeds, so when I have time I will be back to read a lot more, Please do
    keep up the excellent work.

  18. Everything is very open with a precise description of the issues.

    It was really informative. Your website is extremely helpful.
    Thanks for sharing!

  19. Hi Dear, are you in fact visiting this web site regularly, if so then you will
    definitely take pleasant know-how.

  20. I do not even know how I stopped up here, but I thought this submit was great.
    I don’t recognise who you’re however definitely you’re going to a well-known blogger
    when you are not already. Cheers!

  21. Hello There. I found your blog using msn. This is a very well written article.
    I will make sure to bookmark it and return to read more of
    your useful info. Thanks for the post. I will certainly comeback.

  22. If you are going for most excellent contents like myself, just pay a visit this
    site every day since it offers quality contents, thanks

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>