Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Ajax Get

Security covered Obsolete 393 sites

Part of the Views ecosystem · 286 projects

This module modifies Drupal's Views module to use GET requests instead of POST for AJAX-enabled views. This improves caching capabilities for content delivered via AJAX.

This functionality is now provided by Drupal core. There is no need to install this module from version 10.1.0 and onwards. See https://www.drupal.org/node/3193798

This module will make your ajax-enabled Views, use GET instead of POST.

Why?
Because GET is much better for caching. Typically, CDN's or reverse-proxies like Varnish will not store POST requests.

Views uses the Drupal Ajax framework. This by default uses POST.
While a lot of Ajax inside of Drupal requires POST (think the Views UI, for example), a view itself doesn't. If you disable Ajax on a View, it will use GET anyway.

How?
This module overrides a core Drupal Ajax JavaScript function.
@See #956186: Allow AJAX to use GET requests which is an issue to bring this functionality into core, without the need for overriding in the way that this module does.

Note:
Drupal sends additional data in the POST request about the current page state. This includes a list of all the libraries included on the current page, as well as the current theme. Because of the size this can make the request can be too large when using GET, they are not included when using a GET request.
Currently the only known issue this causes is when using a theme that is not the site's default. See #2938055: Rendering does not use correct nondefault theme for anonymous

Drupal 8/9

Setup instructions

  • Once this module is enabled, enable the Views ajax get display extender (/admin/structure/views/settings/advanced)
  • Enable on each view by editing the "Use AJAX" setting, and enabling GET.
Drupal 8–10 · not 11

Ask your assistant about Views Ajax Get

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jun 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.0.1 Stable 8–10 Jun 21, 2023