• Resolved wawan

    (@ekoyuliawan)


    Hello Admin,
    Please help, when the localization activated, gtmetrix/chrome console displayed error: mysite.com/wp-content/litespeed/localres/platform.twitter.com/widgets.js not found (bad request 404). When I directly access the URL, the JS file showed up, but when I explore via WinSCP, I cannot find localres/platform.twitter.com/widgets.js or LSCACHE never generated the local file? I am sure, there is no issue with my folder permission. Thanks & sorry for my English.

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

    (@qtwrk)

    Hi,

    Do you have file /wp-content/.htaccess ?

    Best regards,

    Thread Starter wawan

    (@ekoyuliawan)

    Hello, I am using nginx as my webserver, and the answer is no. The only hidden file in wp-content is .object-cache.ini. Thank you.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    hmmm , that 404 page , was it default webserver 404 page ? or wordpress 404 page ?

    Best regards,

    Thread Starter wawan

    (@ekoyuliawan)

    Hello,

    No, My site’s view is not actually broken, the 404 only appeared on chrome console or detected when I ran SEO Audit like gtmetrix, pingdom, etc. I also tried to remove the line: https://platform.twitter.com/widgets.js from Localization list, then the error gone, but it affected to my SEO score (Reduce DNS Lookups). So, Localization helped me increase my SEO but what the error? Thank you.

    Thread Starter wawan

    (@ekoyuliawan)

    Hi,

    By the way, LSCACHE support for nginx, right? I can see the plugin auto generated a .htaccess on root’s site or somewhere, but how about nginx user? Thank you so much. LSCACHE is awesome!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Yes, I mean when you access https://domain/wp-content/litspeed/localres/platform.twitter.com/widgets.js, does it return nginx error page or WP error page ?

    for Nginx , partially , most cache function relies on htaccess, but nginx doesn’t support LiteSpeed Cache anyway , so this part doesn’t effect you.

    only thing you need to manually set up is the browser cache option , it uses .htaccess to set expire header, you need to manually set equivalent for nginx in its conf file.

    besides the caching part, I think everything should be same

    Best regards,

    Thread Starter wawan

    (@ekoyuliawan)

    Hi, I can see the JS page (not 404) when I access https://domain/wp-content/litspeed/localres/platform.twitter.com/widgets.js but when I explore, the file widgets.js is not exist, like the plugin never generated the file.

    The 404 error only appeared when I run SEO Audit or when check on Chrome’s console. This 404 also affected to my SEO score by the way. Thank you.

    Thread Starter wawan

    (@ekoyuliawan)

    Hi, in addition, I also tried to add the widgets.js manually, but the error still exist. Anyone in this forum has the similar issue? Thanks

    Thread Starter wawan

    (@ekoyuliawan)

    Hi, what do you mean by nginx doesn’t support LSCache? I can see on browser’s header / some cache checker site, the cache seems working. Thanks

    Thread Starter wawan

    (@ekoyuliawan)

    Hi,

    I think the problem is the LSCache doesn’t support my other plugin (WP Hide & Security Enhancer), I used the rewrites feature to rename the default wp-content, etc to another. I just disabled it and the error 404 gone!

    Thread Starter wawan

    (@ekoyuliawan)

    Hi, oh my bad. I missed the word: miss on the header. Of course it doesn’t support yet. šŸ™

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘localres/platform.twitter.com/widgets.js Error 404’ is closed to new replies.