Hi,

I want the clients browser to cache some of my 301 redirects and tried 
to add an 'Expires' header with setHttpHeader. However this doesn't seem 
to work because the redirect method in sfWebController does a 
clearHttpHeaders() right before the redirect.

I can see why this was done this way, but I think what I'm trying to do 
is somewhat reasonable: if for instance I change my website URL 
structure and users have bookmarked the old URL, I rather have them skip 
directly to the new URL permanent URL if they keep using the old one - 
faster for them and less load for me.

According to [1] browsers do cache 301 directs if they are told so.

Perhaps redirect() could have an extra $clearHttpHeaders parameter 
defaulting to true?


[1] http://developer.yahoo.net/blog/archives/2007/07/high_performanc_9.html


Regards,
Paulo M

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to