• Resolved danielbmxd

    (@danielbmxd)


    Hello, on my website the css gives 404 error regularly. I have to purge the cache to fix it,since when a visitor updates, the site is still broken. my 404 monitor shows me logs like
    wp-content/litespeed/cssjs/bec8a.css?ede19 error
    https://ibb.co/QXxrgg7

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Best regards,

    Thread Starter danielbmxd

    (@danielbmxd)

    Número de informe: BCXZLCUE
    Fecha de informe: 08/15/2021 00:42:53

    Plugin Support qtwrk

    (@qtwrk)

    hmmmmm , this is bit of weirder than I thought

    do you have any pattern or method to reproduce it ?

    Thread Starter danielbmxd

    (@danielbmxd)

    No, it also seems strange to me, since for no apparent reason, if I visit my website in incognito mode, sometimes I find it broken and I must enter as admin to delete cache. At the moment I have disabled css and js minification in addition to the option to combine js and css.

    Could it be related to the use of jetpack or some other plugin in my report?

    Plugin Support qtwrk

    (@qtwrk)

    may I know what is your server env ? like a shared hosting or your own server ?

    do you have any additional caching layer ?

    when you see 404 , I assume the files no longer exists in your disk? please check when 404 happens , see what is the 404 list and the file list in your disk /wp-content/litespeed/cssjs/

    jetpack should be okay , I don’t see any immediate conflict with it , nor the other plugins you have, at least from the name

    Thread Starter danielbmxd

    (@danielbmxd)

    Hello, it is a shared hosting (banahosting company), contact support and they tell me the following:
    “Most of the CSS and JS content appears to be being indexed from a CDN. When using CDN on static content, do not enable caching for content in Litespeed as it may cause conflict. I have disabled the Litespeed setting in JS and CSS files. ”

    This is correct?

    Hi, I too am getting 404’s on CSS. It appears that the site is generating a new minified CSS file but the cache isn’t aware of the file creation; still references the old minified CSS file and this results in a 404.

    I’ve not confirmed it yet as I don’t keep track of what filenames are being created but that’s my best guess.

    I’ve been trying any number of settings changes but nothing is working so far.

    • This reply was modified 3 years, 3 months ago by iheggaton.
    Plugin Support qtwrk

    (@qtwrk)

    I don’t see any public CDN on your site, is it some kind of internal/private CDN from your provider ?

    Deleted

    Plugin Support qtwrk

    (@qtwrk)

    oh , sorry , I was replying to OP as WP forum regulation , one topic should serve one user’s issue

    please create your own topic for your issue

    meanwhile, I didn’t see any public CDN either , on your site

    did you enable Cache -> Purge -> serve stale ?

    Thread Starter danielbmxd

    (@danielbmxd)

    hi i’m using jetpack cdn for static files and images.

    I’m seeing this same issue with the CSS showing a 404 – didn’t notice it until got Mobile Usability notices from Google and realized that a few clients’ sites were broken.

    I do NOT have serve stale selected. Purging the cache resolved the issue and I haven’t seen it return (yet) – and have tried several sites in incognito mode just in case.

    I am, in most cases, using CSS and JS minified and combined. Not using Quic Cloud. On shared hosting – these sites are all on Crocweb. Not all of my sites have done this, either; though many run a lot of the same plugins and all are custom-built GeneratePress sites, if that helps. If I find it happens again or with any other site, I’ll check back in here – unfortunately I’ve fixed all the sites where it was happening, as they were live client sites and the clients wouldn’t have been too happy to have them left that way. ?? I have a number of sites under development, but don’t usually turn the caching on until just before going live, so haven’t seen it there.

    Plugin Support qtwrk

    (@qtwrk)

    no , I don’t see jetpack CDN on your site , but maybe I was wrong , you can temporarily disable jetpack cdn , see if it helps

    Thread Starter danielbmxd

    (@danielbmxd)

    Hello, not all, but part of the images and static files are served from the cdn, for example:
    https: //i0.wp.com/domain.com/wp-content/uploads / ……
    https://c0.wp.com/p/woocommerce/5.6.0/assets/js/frontend/add-to-cart.min.js
    Disabling minification and combining of css and js files seems to have solved the problem.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please:

    download https://www.litespeedshare.net/2021/08/92db40-debug.zip

    this package contains 3 modified files with more debug log enabled, for v4.3 version only

    please replace them into /wp-content/plugins/litespeed-cache/src/ to override exsiting ones

    now edit wp-config.php

    find line

    define('WP_DEBUG', false);

    add ; in front it to comment it out , then add

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY',false);

    after it

    and then go to wp-admin -> LSCWP -> toolbox -> debug setting

    set debug log to admin IP only and add your IP in below box

    in “Debug URI Excludes” field ,add

    admin
    ajax

    into it , save and purge all

    and then wait for it happens again

    once it happens , please send /wp-content/debug.log and PHP error log (typically located /public_html/error_log on cPanel) to support at litespeedtech.com with reference link to this topic

    Best regards,

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘css and js missing’ is closed to new replies.