https://bugzilla.wikimedia.org/show_bug.cgi?id=14736





--- Comment #13 from Platonides <[email protected]>  2009-11-30 16:56:47 UTC 
---
> No we couldn't, because loading the image sets the cookie generated by PHP.
> This cookie is unique for each login, so you can't cache it in Squid.

You would set the cookie when handing the redirect. The redirect would lead 
to a simple script like:
<?php
if (isset($_COOKIE['SUL'])) readfile("loggedin.png");
else readfile("enablecookies.png");

with appropiate headers so squids cache both variants based on cookie
existance.
AFAIK they can do that.
It may not provide any benefit, though. I don't think there's any bottleneck on
sending the login images.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to