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

7,885 thoughts on “MooTools Depender, Safari, etags and 412 Precondition Failed

  1. Have you seen Diana Rider’s latest performance? She’s one of the best: Diana Rider in action. New to Diana Rider? You’re in for a thrill. Get access to full-length Diana Rider videos. See why Diana Rider gets 5-star reviews. The real Diana Rider experience is here. Looking for full Diana Rider content? It’s here. The most passionate scenes? Diana Rider owns them. Stream Diana Rider’s full-length features. diana rider onlyfans.

  2. Римские шторы по индивидуальному проекту римские шторы на заказ римские шторы на заказ .

  3. Премиум римские шторы с индивидуальным подходом римские шторы на заказ римские шторы на заказ .

  4. Премиум услуги по пошиву штор пошив штор на заказ пошив штор на заказ .

  5. # Harvard University: A Legacy of Excellence and Innovation

    ## A Brief History of Harvard University

    Founded in 1636, **Harvard University** is the
    oldest and one of the most prestigious higher education institutions in the
    United States. Located in Cambridge, Massachusetts, Harvard has built a global reputation for
    academic excellence, groundbreaking research, and influential alumni.

    From its humble beginnings as a small college established
    to educate clergy, it has evolved into a world-leading university that shapes the
    future across various disciplines.

    ## Harvard’s Impact on Education and Research

    Harvard is synonymous with **innovation and intellectual leadership**.
    The university boasts:

    - **12 degree-granting schools**, including the renowned **Harvard Business School**, **Harvard
    Law School**, and **Harvard Medical School**.
    - **A faculty of world-class scholars**, many of whom
    are Nobel laureates, Pulitzer Prize winners, and pioneers
    in their fields.
    - **Cutting-edge research**, with Harvard leading initiatives in artificial intelligence,
    public health, climate change, and more.

    Harvard’s contribution to research is immense, with billions of dollars allocated to scientific discoveries
    and technological advancements each year.

    ## Notable Alumni: The Leaders of Today and Tomorrow

    Harvard has produced some of the **most influential figures** in history, spanning politics,
    business, entertainment, and science. Among them are:

    - **Barack Obama & John F. Kennedy** – Former U.S.
    Presidents
    - **Mark Zuckerberg & Bill Gates** – Tech visionaries (though Gates did not graduate)
    - **Natalie Portman & Matt Damon** – Hollywood icons

    - **Malala Yousafzai** – Nobel Prize-winning activist

    The university continues to cultivate future leaders who shape industries and drive global progress.

    ## Harvard’s Stunning Campus and Iconic Library

    Harvard’s campus is a blend of **historical charm and
    modern innovation**. With over **200 buildings**,
    it features:

    - The **Harvard Yard**, home to the iconic **John Harvard Statue** (and the famous “three
    lies” legend).
    - The **Widener Library**, one of the largest university libraries in the world, housing **over
    20 million volumes**.
    - State-of-the-art research centers, museums, and performing arts venues.

    ## Harvard Traditions and Student Life

    Harvard offers a **rich student experience**, blending academics with vibrant
    traditions, including:

    - **Housing system:** Students live in one of 12 residential houses, fostering a strong sense of community.

    - **Annual Primal Scream:** A unique tradition where students de-stress by running through Harvard
    Yard before finals!
    - **The Harvard-Yale Game:** A historic football rivalry that unites
    alumni and students.

    With over **450 student organizations**, Harvard students engage in a diverse range of extracurricular activities, from entrepreneurship to performing arts.

    ## Harvard’s Global Influence

    Beyond academics, Harvard drives change in **global policy, economics, and technology**.
    The university’s research impacts healthcare, sustainability,
    and artificial intelligence, with partnerships across industries worldwide.
    **Harvard’s endowment**, the largest of any university, allows it to fund scholarships,
    research, and public initiatives, ensuring a legacy of impact for generations.

    ## Conclusion

    Harvard University is more than just a school—it’s a **symbol
    of excellence, innovation, and leadership**.
    Its **centuries-old traditions, groundbreaking discoveries,
    and transformative education** make it one of the most influential institutions in the world.
    Whether through its distinguished alumni, pioneering research, or vibrant student life, Harvard continues to shape the future in profound ways.

    Would you like to join the ranks of Harvard’s legendary scholars?
    The journey starts with a dream—and an application!

    https://www.harvard.edu/

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>