Support » Plugin: LiteSpeed Cache » Failed to load resource: the server responded with a status of 403 ()

  • Resolved freddyee

    (@freddyee)


    The plugin didn’t let me load a picture in the mainpage, I had to exclude CSS request to get the image to appear, is there other option apart from that to get the image to appear ??

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

    (@freddyee)

    But how could cloudflare have effect on that, since I disable the CDN option on the plugin and the images load normally.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    my guess is still hot-link protection

    that image is referred as follow when you enable CDN,

    referer: https://runayaq.b-cdn.net/wp-content/litespeed/cssjs/e4695.css?9f9c7

    instead of following when you disbale CDN

    referer: https://www.runayaq.com/wp-content/litespeed/cssjs/e4695.css?9f9c7

    look at the domain on both cases, one is your origin domain , one is b-cdn.net domain , reqeust from your origin domain will pass the hotlink protection , but request from b-cdn.net , will certainly fail on passing hotlink protection

    Best regards,

    Thread Starter freddyee

    (@freddyee)

    I have enable hotlink on cloudflare, not on bunny CDN, if I enable it there and disable it on cloudflare,maybe the problem would stop ?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, add both your main domain and cdn domain into bunny CDN allow list

    Thread Starter freddyee

    (@freddyee)

    You were right, disable hotlink on cloudflare and the problem is gone.

    If I disable the proxy on Cloudflare, it would just work to manage DNS records ???

    I have enable Brotli, Railgun, Rocket loader on cloudflare, woudn’t that affect the performance speed ?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    these questions are not exactly related to our plugin anymore.

    but as a professional courtesy:

    the whole point for using CF over B-CDN is really unnecessary and doubling static cache doesn’t really improve speed by term of delivering contents , but only increase the complexity to manage the set up

    CF can cache the static resources already , then why would you still want to use B-CDN

    BCDN has brotil as well , railgun is only effective for dynamic resources, CSS/JS/IMG are not dynamic , rocket loader , it’s kind of like load JS async, I don’t think it will effect on cdn domain anyway , it should be from your main domain

    Best regards,

    Thread Starter freddyee

    (@freddyee)

    Thank you for your answer

    Plugin Support qtwrk

    (@qtwrk)

    just a tip

    if you really want to use double CDN as CF over BCDN

    go to create CNAME on BCDN

    this should allow you create a domain like “cdn.domain.com” , as it’s same top level domain , it should pass the CF hotlink protection.

    Thread Starter freddyee

    (@freddyee)

    No, I have to use BunnyCDN because of the rules on bypass cache for dynamic request and avoid having problems on cart, checkout page.

    I wasn’t sure if only use BunnyCDN or both at the same time, I just want to use what it’s best for performance.

    Plugin Support qtwrk

    (@qtwrk)

    yeah well …

    both CF and BCDN ,by default setting , all dynamic content as I mean the page generated by PHP , are NO-CACHE on both of them

    Thread Starter freddyee

    (@freddyee)

    What is the best to use for speed performance

    Cloudflare or BCDN ?

    Plugin Support qtwrk

    (@qtwrk)

    I don’t know.

    you need to test it out yourself

    each site, server location , targeted visitors …etc all these factors would affect the result.

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Failed to load resource: the server responded with a status of 403 ()’ is closed to new replies.