• Resolved pepe80

    (@pepe80)


    Why when I do setting changes in these two places:
    1. LiteSpeed Cache -> Image Optimization -> Image WebP Replacement
    2. LiteSpeed Cache -> Excludes -> Do Not Cache Cookies
    …the changes are immediately visible on the page, but the .htaccess file changes only when I click “Save Changes” twice? If I click on “Save Changes” only once, nothing in the file changes. Also the modification time does not change.

    PHP: 8.0.9
    LiteSpeed: 5.3.1
    WP: 5.9.2 (multisite)

    • This topic was modified 1 year, 11 months ago by pepe80.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support qtwrk

    (@qtwrk)

    could you please share the section between “LSCWP marker” when you save once , and when you save twice ?

    Thread Starter pepe80

    (@pepe80)

    • LiteSpeed Cache -> Image Optimization -> Image WebP Replacement: switch from ON to OFF
    • Click “Save Changes”
    • I see an immediate effect on the front-end (images are no longer replaced with webp)
    • Section LSCWP in the .htaccess file:
    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.litespeed_conf\.dat - [F,L]
    
    ### marker CACHE RESOURCE start ###
    RewriteRule sda-assets/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} "image/webp"
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
    RewriteCond %1 >13
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###
    
    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    • “Save Changes” click again
    • Section LSCWP in the .htaccess file:
    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.litespeed_conf\.dat - [F,L]
    
    ### marker CACHE RESOURCE start ###
    RewriteRule sda-assets/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    Thread Starter pepe80

    (@pepe80)

    Whereas in this place:
    LiteSpeed Cache -> Cache -> Drop Query String
    …I can’t change anything. After saving, the changes disappear from the text field and no changes appear in the .htaccess file (no matter how many times I click “save”). This set is always displayed:

    fbclid
    gclid
    utm*
    _ga
    Thread Starter pepe80

    (@pepe80)

    On the server side we use LiteSpeed: 6.0.8

    Plugin Support qtwrk

    (@qtwrk)

    could you please create a new wp site on a subdirectory , with only LSCWP enabled, and see if this works there ?

    @qtwrk

    I already have reported this issue several times on all LS plattforms….. The last one at Slack. The first one in January.

    • This reply was modified 1 year, 11 months ago by serpentdriver.
    Plugin Support qtwrk

    (@qtwrk)

    then could you please DM me the detail and steps for reproduce ?

    I tried 2 different sites on different PHP versions and LSWS versions , but seems all good on me.

    Do you mean me?

    Plugin Support qtwrk

    (@qtwrk)

    yes please

    What was the resolution for this? I’m experiencing the same issue on a Multisite setup where we can’t save any changes to the Drop Query String field.

    • This reply was modified 1 year, 5 months ago by Ed Ellingham.
    Thread Starter pepe80

    (@pepe80)

    Unfortunately, I still have the problem (I started this thread). If I install clean wordpress (single site) on the same server, everything works fine. @spednix do you have the option to install a clean Multisite instance on the same server? Thanks to this, we will check if the problem is Multisite.

    • This reply was modified 1 year, 5 months ago by pepe80.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘htaccess file has not changed’ is closed to new replies.