Skip to content

Conversation

@davidalger
Copy link
Member

Product reviews are loaded via ajax, which is defeating the true value of varnish on anonymous product views since mage/bootstrap.js is calling ajaxSetup and setting cache to false, resulting in an anti-cache param being added to the URL by jQuery. The information here is public and catchable information which needs to be cached in varnish for proper performance and scaling. Removing the anti-cache header on this one request results in the entire product view page being catchable by varnish. The proper tags are in-fact already in place on the ajax request so that the content will be properly flushed when the catalog_product_ID tag is purged.

@davidalger
Copy link
Member Author

@ljrweb: you may be interested in this :)

@vkorotun vkorotun added the MX label Feb 29, 2016
@davidalger
Copy link
Member Author

davidalger commented Apr 30, 2016

Seems this PR took so long to process someone found and made the same fix in commit 90ce2db. :) Closing.

MAGETWO-49918: Extra Ajax Requests on PDP

@davidalger davidalger closed this Apr 30, 2016
@davidalger davidalger deleted the feature/fix-cachable-review-blocks branch April 30, 2016 16:27
magento-engcom-team pushed a commit that referenced this pull request Dec 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants