Use sticky posts on normal load but ignore on refresh

<?php
/** change to ignore_sticky_posts when filtering **/

add_filter( 'pre_get_posts', function( $query ) {
    if ( $query->is_home() && $query->is_main_query() ) { // is this the blog home page query?
        $filtered = ( FWP()->request->is_preload && !empty( FWP()->request->url_vars ) ) ||
        ( FWP()->request->is_refresh && !empty( $_POST['data']['http_params']['get'] ) ) ? true : false;
        if ( $filtered ) {
            $query->set( 'ignore_sticky_posts', true );
        }
    }
    return $query;
}, 998, 2 );