Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@david-binda
Copy link
Contributor

The Liveblog is currently reyling on an existence of vary_cache_on_function function when modifying the behaviour for bots.

As not all environments taking advantage of page level caching have the posibility of varying page cache on user agent, the check should happen in browser.

This commit it moving the logic to inside the js/liveblog-lazyloader.js taking advantage of the same regex and disabling the lazyloading initialisation for robots + hiding the load more button.

Fixes #264

The Liveblog is currently reyling on an existence of `vary_cache_on_function` function when modifying the behaviour for bots.

As not all environments taking advantage of page level caching have the posibility of varying page cache on user agent, the check should happen in browser.

This commit it moving the logic to inside the js/liveblog-lazyloader.js taking advantage of the same regex and disabling the lazyloading initialisation for robots + hiding the load more button.
sboisvert
sboisvert previously approved these changes Jan 15, 2018
@philipjohn
Copy link
Contributor

With the new React frontend I'm wondering whether we actually need this at all?

philipjohn
philipjohn previously approved these changes Jun 5, 2018
@philipjohn philipjohn dismissed stale reviews from sboisvert, ghost , and themself via de1ddcf June 5, 2018 19:26
@philipjohn philipjohn merged commit de1ddcf into master Jun 5, 2018
@GaryJones GaryJones deleted the fix-264-remove-vary-cache-on-function branch June 7, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants