• Resolved franks123

    (@franks123)


    hi, i have one questions.

    1) Client is getting errors on Ahrefs tool about cache scripts file. This error is appearing on hundred of pages in website.Please see the image on this link.

    View post on imgur.com

    please guide me about this thing. I will wait for your reply.

    Thank you

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @franks123

    Thank you for your inquiry and I am happy to assist you with his.
    As I can see the minified CSS has failed to load and is showing 404. Have you tried pouring the cache and see if the issue persists?
    Are you using any other caching solution? Can you please confirm that the mentioned file is in /wp-content/cache/minify/ folder?
    Thanks!

    Thread Starter franks123

    (@franks123)

    hi @vmarko
    Yes I have purged the cache. It is still showing 404 error for this link.
    https://www.creativesystems.com/wp-content/cache/minify/6cd2b.default.include-footer.7f20a7.js

    I am not using other caching plugin.

    I have checked that folder but now this file does not exist there.

    Please guide me from where it is coming. and guide me as well to resolve the issue. i will wait for your reply.

    Thank you

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @franks123

    Thank you for the information.
    The fact that the file does not exist in the /wp-content/cache/minify/ folder and the issue persists after purging the cache indicates that it’s still trying to fetch the file and is cached somewhere.
    SO possibly reverse proxy. What you can try is to go to Performance>Browser Cache, scroll down to Sexur=ity headers and disable “X-Content-Type-Options”, save all settings and purge the cache and see if the issue perists.
    Thanks!

    Thread Starter franks123

    (@franks123)

    it is already disabled. please suggest me what to do next?

    Thank you

    • This reply was modified 4 years, 2 months ago by franks123.
    • This reply was modified 4 years, 2 months ago by franks123.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @franks123

    I can see for that file x-content-type-options: nosniff header so if it’s disabled in W3 Total Cache then something else is adding that header. Other files like https://www.creativesystems.com/wp-includes/css/dist/block-library/style.min.css?ver=5.4.4 also have that header.
    When did you start to experience this issue? Have you made any changes like installing a new plugin or adding any rules to your nginx.conf?
    You can try temporarily disabling W3 Total Cache and see if the issue persists.
    If the issue is still there after this then it’s not related to W3 Total Cache
    Thanks!

    Thread Starter franks123

    (@franks123)

    hi @vmarko
    After temporarily disabling the W3 Total Cache plugin, the above mentioned link is not showing on the website
    https://www.creativesystems.com/wp-content/cache/minify/6cd2b.default.include-footer.7f20a7.js

    But when i am activating the W3 Total Cache plugin, that above mentioned link is showing again.

    You can see the image on this link as well.

    View post on imgur.com

    Please suggest me what to do with this issue. I will wait for your reply.

    Thank you

    • This reply was modified 4 years, 2 months ago by franks123.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @franks123

    I can see that minify is enabled. Can you please disable CSS minify in Performance>Minify, save all settings, and purge the cache and see if the issue persists?
    Thanks!

    Thread Starter franks123

    (@franks123)

    hi @vmarko
    You can see the image on this link as well.

    View post on imgur.com

    Thread Starter franks123

    (@franks123)

    Hi @vmarko
    After disabling the css minify, the above mentioned link is still visible.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @franks123

    Thank you for the information.
    Can you please disable minify save all settings and purge the cache, delete the Minify folder manually?
    Thanks!

    Thread Starter franks123

    (@franks123)

    hi @vmarko
    After disabling the minify settings and deleting the minify folder
    then the css and js files that are manually added in minify section will again show after enabling it or not?

    because in css minify section 330 links are added.

    please guide me about this thing.

    thank you

    • This reply was modified 4 years, 2 months ago by franks123.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @franks123

    All added files will remain there until you again enable minify.
    and potentially one of those 330 CSS files might be causing the issue.
    Thanks!

    Thread Starter franks123

    (@franks123)

    hi @vmarko
    So you are saying that first i will disable it and delete the minify folder. After that i will enable it. Am i right?

    Please guide me about this thing.

    Thread Starter franks123

    (@franks123)

    Hi @vmarko
    I have disabled the minify option and deleted the minify folder manually. Then that above mentioned javascript link is not there. but when i have enabled the minify option, again that javascript link is showing.

    one more thing it is javascript file not css file.

    Please guide me about this thing.

    Thank you

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @franks123

    When I open the console I can see this error:
    Refused to execute the script from 'https://www.creativesystems.com/wp-content/cache/minify/6cd2b.default.include-footer.7f20a7.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    I can also see x-content-type-options: nosniff This means that something besides W3 Total Cache is caching your resources. I cannot say what or how, SO you should make sure that you don’t have any other caching solutions or any custom Nginx rules.
    Thanks!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Link To broken javascript in Ahrefs tool’ is closed to new replies.