Re: Browser refresh and varnish

2007-08-02 Thread James Quacinella
KKK RRR wrote: > why every time i can't refresh my browser with files from varnish cache ? > > for exapmle: > if i go to www.x.com/abcd.jpg then is ok - varnish shows HIT > but if i refresh it don't work > Maybe because your browser is caching the image abcd.jpeg after the inital reque

Re: varnish & cookies & multilanguage

2007-08-02 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, rafailowski writes: >It doesn't work with this: > >sub vcl_hash { >if (req.http.cookie) { >set req.hash += regsub( >req.http.cookie, >".*LOCALIZER_LANGUAGE=%22(..)%22.*", >"$1"); >} >} >

Re: varnish & cookies & multilanguage

2007-08-02 Thread rafailowski
It doesn't work with this: sub vcl_hash { if (req.http.cookie) { set req.hash += regsub( req.http.cookie, ".*LOCALIZER_LANGUAGE=%22(..)%22.*", "$1"); } } So i investiguate the logs and i found this, it seems that it c

post request seems to be broken in 1.1

2007-08-02 Thread jean-marc pouchoulon
Helo , I've just upgraded to 1.1 and post request seems to be broken It seems that  positionnal args are not relayed by varnish 1.1 jean-marc tcpflow in 1.1: POST /detailAcad2 HTTP/1.1 Host: smtpcheck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6) Gecko/20070725 Firefox

Re: varnish & cookies & multilanguage

2007-08-02 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= writes: >"Poul-Henning Kamp" <[EMAIL PROTECTED]> writes: >shouldn't > >vcl_hash { >req.hash +=3D req.http.cookie[LOCALIZER_LANGUAGE]; >} > >work, or haven't you implemented subscripting yet? Not implemented yet. -- Poul-

Re: varnish & cookies & multilanguage

2007-08-02 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, rafailowski writes: >There's a little problem with these regexp >".*LOCALIZER_LANGUAGE=\"(..)\".*", >At the second \ ,varnish returns a "Syntax error". Yeah, I'm forgetting that I tried to make it easier for webmasters :-) Try using %22 instead of \" ".*

Re: varnish & cookies & multilanguage

2007-08-02 Thread Dag-Erling Smørgrav
"Poul-Henning Kamp" <[EMAIL PROTECTED]> writes: > Hash that part of the cookie in addition to the URL and host, something like: > > vcl_hash { > if (req.http.cookie) { > set req.hash += regsub( > req.http.cookie, >

Re: varnish & cookies & multilanguage

2007-08-02 Thread rafailowski
2007/8/2, Poul-Henning Kamp <[EMAIL PROTECTED]>: > In message <[EMAIL PROTECTED]>, rafailowski writes > : > >Hello, > >I'm new to varnish and i have some problems with cookies. > >I have to cache a website who use coookies to determine the language. > > > >The cookies are: > >15 TxHeader b Cook

Re: Browser refresh and varnish

2007-08-02 Thread Stig Sandbeck Mathisen
"KKK RRR" <[EMAIL PROTECTED]> writes: > why every time i can't refresh my browser with files from varnish cache ? > > for exapmle: > if i go to www.x.com/abcd.jpg then is ok - varnish shows HIT > but if i refresh it don't work You don't run varnish on that domain, and the document does no

Re: varnish & cookies & multilanguage

2007-08-02 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, rafailowski writes : >Hello, >I'm new to varnish and i have some problems with cookies. >I have to cache a website who use coookies to determine the language. > >The cookies are: >15 TxHeader b Cookie: _ZopeId="23273311A29b-he1CIg"; >LOCALIZER_LANGUAGE="es" >Is

varnish & cookies & multilanguage

2007-08-02 Thread rafailowski
Hello, I'm new to varnish and i have some problems with cookies. I have to cache a website who use coookies to determine the language. The cookies are: 15 TxHeader b Cookie: _ZopeId="23273311A29b-he1CIg"; LOCALIZER_LANGUAGE="es" The url used to change language on the website is like that: ht

Re: several questions about varnishd..

2007-08-02 Thread Dag-Erling Smørgrav
"Monty Ree" <[EMAIL PROTECTED]> writes: > 1. Does varnish saves hot objects in memory? if then any memory size > limit? and if memory is full, that saves in hdd disk? Varnish stores all objects in a memory-mapped file. The kernel's VM system decides what's in memory and what's on disk. > 2. any

Re: files in /var direcotry

2007-08-02 Thread Dag-Erling Smørgrav
"Kamil Radziszewski" <[EMAIL PROTECTED]> writes: > what file are created in var/varnish/{hostname}/.. The C source generated from the VCL code; the resulting binary; the backing file for the shared memory log; possibly the cache file. > Every time i run varnish there is created file like bin.XXtS

Browser refresh and varnish

2007-08-02 Thread KKK RRR
why every time i can't refresh my browser with files from varnish cache ? for exapmle: if i go to www.x.com/abcd.jpg then is ok - varnish shows HIT but if i refresh it don't work Cathy Kelly - "Przyjaciółki od serca". Ciepła i wzruszają

Re: VARNISH_STATE_DIR undeclared

2007-08-02 Thread Dag-Erling Smørgrav
"ADOFMS Admin, SteveOC" <[EMAIL PROTECTED]> writes: > Just building from latest svn update as of this morning .. > > error compiling in trunk : > > instance.c: In function `varnish_instance': > instance.c:58: error: `VARNISH_STATE_DIR' undeclared (first use in this > function) > instance.c:58: err

Re: refresh varnish cache

2007-08-02 Thread Stig Sandbeck Mathisen
[EMAIL PROTECTED] writes: > why every time if i try to refresh files from varnish cache it don't > work. > > I can HIT any file from varnish cache but not refresh ...why ?? What, exactly, do you mean by: * HIT any file from varnish cache * refresh files from varnish cache * "it don't work"