Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be usefull to allow admin switch method, that with that ajax sends, from GET to POST.
It will be usefull if developer needs to send hudge mount of data to authcache.
GET have limits based on url length, btw it differs for different browsers.
Here is the patch for this.
Comment | File | Size | Author |
---|---|---|---|
#1 | authcache_methods.patch | 3.86 KB | igor.ro |
Comments
Comment #1
igor.ro CreditAttribution: igor.ro commentedComment #2
Jonah Ellison CreditAttribution: Jonah Ellison commentedGood call. It might be more convenient to automatically switch to POST, though, if the data exceeds a certain limit, perhaps 2,000 characters?
Comment #3
igor.ro CreditAttribution: igor.ro commentedYes it can be automode, but I'd prefer to make just option.
Because we can not get limits. I knows 3 places that makes url(or some parts of it) limited.
1) Broswer level (limits lenght of ulr). Different broswers have different limits.
2) Web Server limit - Apache have ulr limit that default 2 000 chars (as you told)
3) Suhosin patch - can limit different parts of urls. like lenght of get param value.
So I think better to make admin resposible for this choose.
Thanks.
Comment #4
znerol CreditAttribution: znerol commented