Not quite the solution I was expecting, but I found another plugin that handles Service Worker much better and adds the features I needed, though I have to list posts manually rather than programmatically.
The better plugin is Above The Fold Optimization (ignore the 1 star reviews, it’s one of those plugins where if you use it wrong it WILL break your site, definitely not recommended for amateurs though). It has an optional ServiceWorker you can install including precaching and a lot more options than the seemingly abandoned Mozilla plugin. I even find it more useful and faster than Autoptimize at deferring my CSS/Javascript in a more cache-friendly way.
I’m still not entirely sure why my earlier attempt with the other ServiceWorker implementation wasn’t working, but for now this does in fact fit my criteria of caching specific posts.
Related Posts:
- Service Worker Uncaught (in promise) DOMException
- How to include PHP files in plugins the correct way
- Checking if a file is already in the Media Library
- Prevent network activation of plugin
- Add Custom User Capabilities Before or After the Custom User Role has Been Added?
- Get list of scripts / styles and show file which enqueued them
- WordPress updates defined vs add_filter?
- Creating Settings Page with dropdowns for Plugin
- How can I track active users of my plugin? and why doesn’t WordPress.Org offer this?
- Empty POST data on server on AJAX request using Angular $http
- Custom attachments uploader code. Almost there!
- $wpdb->insert is changing a value
- What are the default WordPress password requirements?
- Can I get all options using the option group id? [closed]
- Actions or filters fired when data is saved in a custom table
- Implementing namespaces in plugin template
- Conditional add_filter?
- The plugin generated 80 characters of unexpected output!
- How to update/auto-update my private plugin? [duplicate]
- How to use WP default post list tables in a plugin?
- What’s the Right Way to get and save remote data for a Gutenberg block?
- Commit changes to WordPress Plugin SVN with TortoiseSVN
- Passing array of strings to a SQL statement in a WordPress plugin
- Add multiple shipping rates from add_rate function with custom ID
- add_shortcode is not working [duplicate]
- Filter, or any way to dynamically change theme screenshot image?
- On Plugin Activation, How Do I Check for Proper Transport Mechanism?
- Show add_meta_box by selecting a specific category
- Can a plugin be used to contain all custom functions to extend other plugins
- How to render a time-of-day string like ’16:42′ with a site’s chosen time format?
- Are block templates incompatible with serialize_blocks?
- ServerSideRender and Media Object: attributes passing image data object to php renderer even though it’s not set
- Programmatically modify an admin page UI of a WordPress site from my WordPress plugin
- Check Paypal Purchase is Success or Not in Easy Digital Download Plugin
- Render content after post title in wp-admin
- Error on inserting a form value to database
- Notice: Trying to get property ‘term_id’ of non-object
- Append wp_editor to Dynamically created textarea
- javascript datatables in a plugin
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Open modal when user clicks on span in visual editor
- How to paginate a custom page template with custom database tables
- wp_mail() headers multipart/alternative
- WordPress Plugin Activate / Deactive Failing
- How can I add a simple custom field to my plugin?
- Custom Plugin – CSS works, JS doesn’t
- Inserted double quote when prepending to the_content
- unable to wp_enqueue_script(‘suggest’);
- update_post_meta doesnt update template
- Setting global block attribute value
- Plugin custom post template; without overriding all posts
- Run uninstall.php if a checkbox is checked from settings page
- Gravity Forms Anchor only on Front Page?
- About a programming language starts with [closed]
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database
- How to set a header in wp_safe_remote_get()?
- Multiple page plugin settings
- sanitizing/escaping plugin options
- how to get the top 10 popular blogs
- can’t access some WordPress function from my plugin
- Custom Block Not Shown in Block Inserter
- add_filter postbox_classes multiple post types
- script seem not load with use wp_enqueue_script
- How to Run Plugin on Server Without Web Browser
- Impossible to declare box-shadow with wp.customize?
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- WP Refused to display ‘URL’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
- Get search result count in plugin
- Transform internationalized plugin into internationalized mu-plugin?
- Override woocommerce loop-start.php from theme using plugin?
- delete category on plugin deactivation wordpress
- Rate limiting ajax requests in WordPress
- How to filter an action inside class in MemberPress plugin?
- XMLHttpRequest to open PHP file responds with Missing Page
- Pre-populated WooCommerce checkout fields: dropdown fields issue
- jQuery dependent script ignores $in_footer bool and doesn’t work in header
- Relational / Associate tables using native WordPress functionality
- how to retrieve post_id under woocommerce_add_to_cart_validation hook?
- Define a url for an email confirmation from within a plugin
- WordPress Search Form with Keyword Suggestion
- Pull commentdata for pre_comment_on_post from comment_post_ID
- WordPress custom plugin developement
- Get the post ID only off single page
- ouput buffering confusing me!
- Bootstrap collapse in custom WordPress widget
- Page reload occurs before request finishes
- PHP Fatal error when using plugin_basename
- How to Rewrite WordPress URL for a Plugin
- append code after the_content not working
- What does $_REQUEST[‘redirect_to’] do?
- check wp_login into a plugin
- how can a plugin return an error message on activation?
- Declaration of mandoe_menu_walker::start_el(&$output, $item, $depth, $args) must be compatible with Walker::start_el(…)
- Reading the inside of
- WordPress, GIT, Renamed Plugin Dir + files – Working Code now Broken [closed]
- WooCommerce adds a newline symbol (\n) between email recipients
- Upload to a specific media folder created by FileBird Lite
- Allow HTML in product attributes and variation for WooCommerce
- How do I modify the error code array used by “shake_error_codes” filter?
- How do I add multiple custom menu Woo-commerce my account page?