Caching on the edge

Fabien Potencier (19.May.2011 at 09:30)
Workshop at Dutch PHP Conference 2011 (English - UK)

Rating: 4 of 5

Besides obvious optimizations like using APC, you probably have some caching strategy for your PHP projects. Most frameworks nowadays provide tools to cache whole pages or only page fragments, and interfaces to software like Memcache. But did you know that caching is a large part of the HTTP specification (RFC 2616), published more than 10 years ago? It describes very powerful techniques that are mostly unknown to web developers.

Do you know for instance how to use the 'Cache-Control' HTTP header? And do you know the pros and cons of the 'ETag' and 'Last-Modified' HTTP validation headers? In the first part of this session, I will show how you can take advantage of HTTP caching and how to leverage gateway caches.

Akamaï and other companies wrote the ESI language specifications (Edge Side Includes) in 2001 to provide a means to build pages with different HTTP resources. It brings a lot of flexibility to the table. Squid and Varnish, two of the most popular reverse proxies, support ESI out of the box. The second part of this session will show how you can use ESI in your next PHP project.

Who are you?

Claim talk

By clicking this button you are declaring that you are the speaker responsible for it and a claim request will be sent to the administrator of the event.

If the claim is approved you will be able to edit the information for this talk.

Are you sure?

 
Comments closed.

Comments

Rating: 4 of 5

19.May.2011 at 15:20 by Bart Ramakers (1 comments)

Great talk, got a whole lot of work to implement tonight!

Amazing that a 20 year old specification has so much you don't know about!

Rating: 3 of 5

19.May.2011 at 15:20 by Jonas De Smet (12 comments)

Great talk, only the second part was a little bit harder to follow if you weren't familiar with server caching.

Great preparation with examples that everyone could use and try some stuff out.

Rating: 1 of 5

19.May.2011 at 15:23 by Anonymous

That was short!!

it could all be done in the morning session.

Rating: 4 of 5

19.May.2011 at 18:10 by Thijs Feryn (130 comments)

Although this workshop was really short (2 hours early) I was actually impressed with the content.

I've seen this workshop before, but in a regular presentation format. The thing that I liked most was the hands-on approach with the Silex microframework and the debug mode.

But next time you could fit it into a 3 hour session instead of a 6 hour one.

Rating: 4 of 5

20.May.2011 at 13:48 by Boy Baukema (44 comments)

I agree the debug mode was impressive and the content was very interesting, but for a European conference this would need to be either shorter or more interactive.

Rating: 3 of 5

22.May.2011 at 12:56 by Dennis Luitwieler (27 comments)

Great tutorial, very interesting content and a very good explanation of the mechanisms.
I did learn quite a few things!

IMHO, I think the talk could've been improved in 1 of 2 ways, either remove the whole interactive time, and just make it a presentation or make the interactive time larger.

I did not really like the interactive time, after all the info was given we only had a few minutes to just "play around" with it.
I think It would be nicer if we had less explanation beforehand, then some more interactive time to figure out things for ourself and try to get stuff to work. Then after that, the 'solutions' could've been shown and/or explained.

Also, I liked Silex.

© Joind.in 2014