content-sw-sample.cfg

From: Bryan Germann <germish#gmail.com>
Date: Thu, 4 Oct 2007 18:07:06 -0400


examples/content-sw-sample.cfg provides the following example to send requests with /img/ and /css/ in the URI to the static backend:

        # The URI will use a specific keyword soon
        reqisetbe       ^[^\ ]*\ /(img|css)/    static
        reqisetbe       ^[^\ ]*\ /admin/stats   stats

This is correct, but misleading. A request header containing "Referer: http://www.example.com/img/" would send the user to the static backend even if they requested "http://www.yoursite.com/".

I guess one solution would be:

        reqisetbe       ^(GET|POST)\ /(img|css)/    static
        reqisetbe       ^(GET|POST)\ /admin/stats   stats

But it would be nice to have a urlisetbe keyword.

Thanks,
Bryan Received on 2007/10/05 00:07

This archive was generated by hypermail 2.2.0 : 2007/11/04 19:21 CET