Should I Use Varnish for RESTful API

Per Buer perbu at
Wed Sep 5 09:12:41 CEST 2012

Hi Mark,

On Tue, Sep 4, 2012 at 9:08 PM, <smsmail at> wrote:

> I have a server running Ubuntu, Apache2, Drupal 7, Varnish.  I have  a PHP
> RESTful API that I run on this computer that takes search requests from the
> API request and then returns the data from the drupal database in a JSON
> format and shortly will be returning XML and HTML if requested.  Right now
> I have varnish setup to pass on the API requests, should I let varnish
> cache the data?


You need to make sure that they are GET requests, though.

Per Buer
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <> |
Video<> |
Twitter <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list