public
Description: A sample application for playing around with some ESI ideas I had.
Clone URL: git://github.com/codahale/esi-blog.git
esi-blog / README
100644 34 lines (22 sloc) 0.759 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
= esi-blog =
 
An experiment in leveraging Edge-Side Includes to build an application with the
following properties:
 
  1. Doesn't suck to develop.
  2. Uses as much HTTP-level caching as possible.
  3. Leverages HTTP invalidation side-effects (e.g., POST clears cache) to make
     cache invalidation not suck so much.
 
= Getting Squid3 To Work =
 
Ho man. This is complicated.
 
1. Install an ESI-enabled version of Squid3:
 
  sudo apt-get build-deps squid3
  apt-get source squid3
  cd squid3*
  nano debian/rules
  <add --enable-esi to the list of config flags>
  debuild -us -uc
  cd ..
  sudo dpkg -i *.deb
 
2. Configure it:
 
  sudo ln -s THIS_APP/config/squid3-development.conf /etc/squid3/squid.conf
 
3. (Re)Start it:
 
  sudo /etc/init.d/squid3 restart