ajax cached get
Categories
Component ID
2864366
Component name
ajax cached get
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
92
Component created
Component changed
Component body
About
Improve site speed when pulling page content using ajax by using GET requests and caching ajax data.
Details
This module adds a main content renderer for ajax request.
The main difference between the normal ajax content renderer and this one is, that it allows content to be cached.
Security
Since the module uses the same caching mechanism as the HTML Renderer. So for example logged in users do not get anything cached.
Example
Get a node in Javascript:
var myAjaxObject = Drupal.ajax({url: 'node/1'})
myAjaxObject.options.type = "GET";
myAjaxObject.options.url.replace('=drupal_ajax','=drupal_ajax_cached_get');
myAjaxObject.execute();
