some headers and cache questions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ahlofan
Forum Newbie
Posts: 2
Joined: Wed Jan 23, 2008 2:15 am

some headers and cache questions

Post 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~
dayyanb
Forum Commoner
Posts: 46
Joined: Wed Jan 23, 2008 12:34 am

Re: some headers and cache questions

Post 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.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: some headers and cache questions

Post 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.
Post Reply