Active
Project:
Ajax Blocks
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2015 at 05:00 UTC
Updated:
14 Jun 2015 at 05:03 UTC
Jump to comment: Most recent
When using a CDN for dynamic content (*), ajax_blocks hits the origin server (Drupal) for every anonymous view. Worse, Drupal doesn't cache the /ajaxblocks output at all.
This could be solved by providing two AJAX endpoints: /ajaxblocks_nocache (to be requested by JS when a user is cookie present) and /ajaxblocks_cacheable (requested for anonymous users, which DOES allow caching, both in the CDN and in Drupal)
Thoughts?
--
(*) e.g. Cloudflare with a cache-everything rule, or Incapsula. In Free mode, these services do not honor the Vary:Cookie header
Comments
Comment #1
drupdan3 commentedComment #2
drupdan3 commented