Uhm, I don't think you can ignore the callback, isn't the callback what's
included in the response? As such for proper function the callback can't be
ignored.
Cheers,
Florian
On Wednesday, October 22, 2014 7:16:48 AM UTC+2, Luke Dupin wrote:
>
> Anyone that has used @cache_page with jquery's JSONP knows that it does
> nothing. The URL is different for every call, therefor nothing gets cached.
>
> I suggest that a parameter is added to @cache_page which causes certain
> URL variables to be removed from the URL before the url is cached. I'm
> picturing something like this:
> @cache_page(60 * 15, ignore_variables=('callback',))
>
> Another approach is to allow the user to pass REGEX(s) to sub out portions
> of the URL. This will allow more flexibility, but is probably a bit
> overkill.
>
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/ca05cf09-4e31-4de4-8ba8-c2c9402b1fd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.