syntetic images

Audun Ytterdal audun at ytterdal.net
Thu Mar 18 14:20:39 CET 2010


Cool. I'll look into it.
By the way. The parameter for the errorpage is vcheck, not vheck

Den 18. mars 2010 kl. 14.00 skrev Laurence Rowe <l at lrowe.co.uk>:

> It's possible to include an encoded image using a data: url, see
> http://en.wikipedia.org/wiki/Data_URI_scheme (works with firefox,
> chrome/safari and IE8+)
>
> Laurence
>
> On 18 March 2010 10:36, Audun Ytterdal <audun at ytterdal.net> wrote:
>> Hi People.
>>
>> Nowdays I have a nice errorpage for varnish using syntetic
>>
>> This can be triggered by adding ?vcheck=1 to any url
>>
>> http://www.vg.no/?vheck=1 for example
>>
>> But we want to jazz it up a bit. Adding innline CCS is a start
>> ofcourse, but it would be really cool if we in some way could add a
>> few pictures as well
>>
>> Is this is some way doable:
>>
>> if (req.url ~ "error/img.jpg") {
>>  include "/some_jpg_file_maybeprefixed_with_syntetic.jpg";
>> }
>>
>> (See you all on VUG2)
>>
>> --
>> Audun Ytterdal
>> http://audun.ytterdal.net
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
>>




More information about the varnish-misc mailing list