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. индивидуальные гелиевые шары доставка гелиевых шаров на дом

  2. курсы ораторского мастерства для начинающих курсы по речи

  3. Steam Desktop Authenticator https://steamauthenticator.ru is a two-factor authentication application for PC. Generates codes to confirm transactions and log in to Steam improving the security of your account. Convenient quick to install and easy to use solution for data protection.

  4. Онлайн слив курсов https://sliv-kursov213.ru простой способ получить знания из популярных онлайн-курсов. Развивайтесь в своем темпе выбирайте интересующие темы и экономьте на образовании. Здесь вы найдете материалы для саморазвития карьерного роста и хобби.

  5. Steam Desktop Authenticator https://steamdesktopauthenticator.io is a two-factor authentication application for PC. Generates codes to confirm transactions and log in to Steam improving the security of your account. Convenient quick to install and easy to use solution for data protection.

  6. Steam Desktop Authenticator https://steamauthenticator.ru is a two-factor authentication application for PC. Generates codes to confirm transactions and log in to Steam improving the security of your account. Convenient quick to install and easy to use solution for data protection.

  7. Steam Desktop Authenticator https://authenticatorsteam.com is a two-factor authentication application for PC. Generates codes to confirm transactions and log in to Steam improving the security of your account. Convenient quick to install and easy to use solution for data protection.

  8. Тақырыпқа кеңінен талдаймыз: 1xbet қазақстан промокоды. Және оларды қалай алуға болатындығын біле аласыз. Есептелген бонустарды қолма-қолға айырбастауға және шоттан алуға немесе букмекердің промокодтар бөлімінде жұмсауға болады.

  9. We have selected main questions players in Nigeria on the topic sportybet nigeria login mobile with comprehensive answers. Activating promo codes while registering and first account funding provides the opportunity to increase the balance and make the start of the game more profitable.

  10. Предлагаем услуги профессиональных инженеров офицальной мастерской. Еслли вы искали ремонт ноутбуков sony рядом можете посмотреть на сайте: ремонт ноутбуков sony рядом Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом

  11. Мостбет офіційний сайт гарантує безпечність та зручність використання Мостбет гарантує чесність усіх ігор та прозорість виплат мостбет сайт. Mostbet com – це надійність та безпека у світі онлайн ставок Офіційний сайт Мостбет гарантує надійність ваших транзакцій Мостбет дзеркало.