Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #196 (closed enhancement: fixed)

Opened 13 years ago

Last modified 12 years ago

Be able to throw away a random value in a URL

Reported by: kevin Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords:


Rune Hansen made the request to be able to generate a random value for the URL to help get around IE's overly aggressive caching. This could be added as a flag to the url function and use a well-defined variable name (tg-random) that can be stripped on the way in. That way, no change to controller methods will be required.

Change History

comment:1 Changed 13 years ago by kevin

  • Summary changed from Add ability to create a random value in a URL to Be able to throw away a random value in a URL

Bob Ippolito pointed out that there's no good reason to have the server generate the random value for the URL, because then the request can only be made *once* from the browser (which defeats the purpose of having a random value in the first place). So, the random value needs to be computed in the browser. However, it would still be good for this random value to be thrown away by controllers.py.

comment:2 Changed 13 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

The random variable is tg_random. Done in [372]

Note: See TracTickets for help on using tickets.