{"id":19006042,"date":"2026-08-29T06:04:37","date_gmt":"2026-08-29T06:04:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/version-3-0-1-now-working-with-esi\/"},"modified":"2026-08-29T06:04:37","modified_gmt":"2026-08-29T06:04:37","slug":"version-3-0-1-now-working-with-esi","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/version-3-0-1-now-working-with-esi\/","title":{"rendered":"Version 3.0.1 now working with ESI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi everyone,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m using LiteSpeed Cache alongside WP-Polls, displaying a poll via a shortcode inside a sidebar widget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Normally, embedding a poll directly prevents LiteSpeed Cache from caching the whole page (as it flags the poll as dynamic content). To bypass this, I&#8217;ve been using LSCache&#8217;s <strong>ESI (Edge Side Includes)<\/strong> feature (per their guide: <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/docs.litespeedtech.com\/lscache\/devguide\/advanced\/#esi\">https:\/\/docs.litespeedtech.com\/lscache\/devguide\/advanced\/#esi<\/a>). This allowed me to cache full pages while keeping WP-Polls functional.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, after updating WP-Polls to version 3.0.1, ESI seems to have broken.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Looking at the changelog for 3.0.1:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>&#8220;CHANGED: The stylesheet, the voting script and the inline poll bar styles load only on pages that show a poll, a polls archive or the poll widget; every other page sheds all three&#8230;&#8221;<\/em><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Because in my setup the poll is fetched dynamically via an ESI block, WP-Polls probably doesn&#8217;t detect the poll during the main page request. As a result, its specific assets (CSS\/JS) are not loaded on those pages, leaving the poll broken.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I understand this behavior probably stem from how ESI operates, but would it be possible to add an option\/toggle to <strong>force load WP-Polls assets globally<\/strong> across the entire site for users relying on ESI or similar setup?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-19006042","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19006042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19006042\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19006042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}