Forum Replies Created

Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    I update LSWPCACHE to Version 3.7-rc18
    After update and save settings again, that block of rulesets removed from htaccess.
    Problem solved. All sites loaded properly.
    Thank you.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Yes. with your ruleset (or even remove this block) all subsites loaded properly.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    Yes LSCWP is network activated. Page optimization configured for each site.

    I tried with that rulset and issue fixed. But every time I save LSCWP settings, rulsets reset to default.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    The multisite network installed on k____h.com
    Multisite configured to subdirectory for subsites and we have 3 subsites:
    Main site: k____h.com/
    blog1: k____h.com/book/
    blog2: k____h.com/cookbook/
    blog3: k____h.com/landings/

    Also the main site is multilangual with two subdirectories:
    k____h.com/en/
    k____h.com/fa/

    Thread Starter HamidReza Abdipour

    (@abdipour)

    I found the problem.
    This code auto generated in .htaccess:

    ### marker Network CSS/JS Auto Generation Rules start ###
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !^/book/wp-content
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-content/litespeed/cssjs/.*) $2 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/book/wp-content/litespeed/cssjs/.+\.(css|js)$
    RewriteRule . /book/index.php [L]
    ### marker Network CSS/JS Auto Generation Rules end ###
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##

    Problem solved by removing this code.
    Why this code generated only for this blog? How to prevent generating again?

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Sorry for the delay in reply.
    No, there is’nt any other optimization/cache plugin.
    I tested it with disabling Remove Query Strings option in LSCache. But the problem persists.

    Could htaccess redirects cause this?

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Sure.

    Status:

    Status: 302 Found
    Version: HTTP/2
    Transferred: 371 B (0 B size)
    Referrer Policy: strict-origin-when-cross-origin

    Response Header:

    HTTP/2 302 Found
    x-redirect-by: WordPress
    location: https://kalleh.com/book/wp-content/litespeed/cssjs/17d9a.css
    x-litespeed-cache-control: no-cache
    content-type: text/html; charset=UTF-8
    content-length: 0
    date: Wed, 24 Feb 2021 04:34:42 GMT
    server: LiteSpeed
    cache-control: no-cache, no-store, must-revalidate, max-age=0
    vary: User-Agent
    X-Firefox-Spdy: h2

    Request Header:

    GET /book/wp-content/litespeed/cssjs/17d9a.css HTTP/2
    Host: kalleh.com
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0
    Accept: text/css,*/*;q=0.1
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate, br
    Referer: https://kalleh.com/book/
    DNT: 1
    Connection: keep-alive
    Cookie: _gcl_au=1.1.728813197.1614077735; ls_smartpush=fdf041077ffff6d3; wp-wpml_current_language=en
    Pragma: no-cache
    Cache-Control: no-cache
    TE: Trailers

    I’m sure the ‘CSS HTTP/2 Push’ and ‘JS HTTP/2 Push’ are disable when get this results.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi, thanks for your reply.
    I should add an jQuery function after the lazyload finished. There is no way to listening on body classes changing.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Thanks for your reply. No. there is no any other lazy load. Actually there is no any conflict. Just because of lazyload function, i can’t find out when images are loaded.

    imagesloaded just a jquery library to detect when images have been loaded.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Hi,
    I re-enable that options to find the issue.
    Based on “Combined CSS Priority” and “Combined JS Priority” option’s description that says “Only set to ON when changing the order of combined and uncombined CSS is needed.”. Since i don’t need these options, they have to be left off.
    Then i enable these options in primary site:

    Load CSS Asynchronously
    -Generate Critical CSS
    -Generate Critical CSS In Background
    -Inline CSS Async Lib

    Still there is no issue. So i get into second site and try to enable these options one by one:

    Load CSS Asynchronously
    -Generate Critical CSS
    -Generate Critical CSS In Background
    -Inline CSS Async Lib

    By enabling “Load CSS Asynchronously” still everything’s good. After enable “Generate Critical CSS” the second site get into problem and some JS conflicts.

    Thread Starter HamidReza Abdipour

    (@abdipour)

    I find out the issue also occurs in JS files.
    So turned off this options:

    Combined CSS Priority
    Combined JS Priority
    Load CSS Asynchronously
    -Generate Critical CSS
    -Generate Critical CSS In Background
    -Inline CSS Async Lib

    In both sites and it seems issue fixed. Can’t we use the async CSS and CCSS in multisite?

    Thread Starter HamidReza Abdipour

    (@abdipour)

    Sure. This report sent from primary site:
    LiteSpeed Report Number

    Report number: HQIYIQJX

    Report date: 02/29/2020 06:51:22

Viewing 12 replies - 16 through 27 (of 27 total)