You have 2 options: 1. Change in mod_rewrite to filter out the extra query elements that pollute the query string 2. Set up explicitly the sf_cache_key when including a partial - in your case tthe sf_cache_key would be the id.
gabriel On Jul 5, 4:26 pm, illarra <illa...@gmail.com> wrote: > Hi > > Is there a way of having an unique cache regardless of the extra > parameters added to a route (like Google Analytics)? > > Let's say I have a route @view?id=13 that results in the > URLhttp://example.com/post/13 > When I go to the URLhttp://example.com/post/13?utm_campaign=x&utm_medium=y > the cached route by symfony is: @view? > id=13&utm_campaign=x&utm_medium=y > > And that creates different entries in the cache for the very same > page, because this parameters are just used via javascript. > I would like only one cache per view: @view?id=13. Can I change this > behavior? > > Thanks a lot. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en