Page 1 of 1

some headers and cache questions

Posted: Wed Jan 23, 2008 2:21 am
by ahlofan
I need to check the etag of a webpage everytime, so that I can check did the user has visitor the page. However, I have some information will need to pass in by url variables, and there is a problem now. Once the url vars are different, (pixel.php?a=1/pixel.php?a=2/.....) the browser will think that they are actually different file, and will not request with "If-None-Match" header, is there anyway to tell the broswer that they are actualy the same?

Thanks~

Re: some headers and cache questions

Posted: Sat Jan 26, 2008 10:27 am
by dayyanb
You could try using post instead of get but I don't know if this is feasible under your circumstances. Another solution, although rather ugly, would be to transmit the information through an iframe.

Re: some headers and cache questions

Posted: Sat Jan 26, 2008 10:42 am
by JAM
Sorry if I misunderstodd you, but it sounded like you could use: parse_url — Parse a URL and return its components easier get what you want or strip of things you dont want.