Code Monkey home page Code Monkey logo

asset's Introduction

CakePHP Asset Plugin
====================

The idea of this plugin is to improve CakePHP's assets management,
including:

* manage multiple assets servers;
* image thumbnailing;
* Conditional GET

It lacks lots and lots of things at the moment, but I'm planning to
add features as regular as possible.

What is Conditional GET?
------------------------

Conditional GET is the ability to save bandwidth when re-requesting a
resource served by a HTTP server. This translates into a pair of
headers sent by the server when accessing a resource for the first
time, especifically, Last-Modified and ETag. The web browser then,
when request the same resource, can ask If-Modified-Since or
If-None-Match, in order to ask the server if the resource has been
modified or not since the last time. If it wasn't, the server answers
with a 304 Not Modified header, which tells the browser to use the
cached image.

None of the frameworks I'm aware of (such as CakePHP or Ruby on Rails)
manage this type of BASIC caching, which is not only a shame but a
lame move. Hopefully I'll deploy a simple way to add this to your
CakePHP applications.

You can take a look at an implementation at

http://stackoverflow.com/questions/204886/236380#236380

And more information at the article about Conditional GET
that Simon Willison wrote back in 2003

http://simonwillison.net/2003/Apr/23/conditionalGet/

And also Conditional GET for RSS hackers

http://fishbowl.pastiche.org/2002/10/21/http_conditional_get_for_rss_hackers/

Great Caching Tutorial:

http://www.mnot.net/cache_docs/

asset's People

Contributors

inkel avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.