Viewing 4 replies - 1 through 4 (of 4 total)
  • Thanks @thomaskr.

    Rewrite rules may or may not work for every CDN, depends on CDN configuration. If “Vary Accept” header is sent from your server and your CDN service obeys it, correct image is sent to client browser.

    https://www.igvita.com/2013/05/01/deploying-webp-via-accept-content-negotiation/

    Unfortunately, detecting browser capability is not a problem that can be solved with simple and fast solution using either rewrite rules or PHP. Not all major browsers/versions will send “Accept: image/webp” header, even when they do support webp images.

    Tag <picture> is planned for the future release, because it should work via every CDN. But, this solution still leaves out CSS or JS applied images as problem to solve with rewrite-rules (and HTTP-headers) whether using CDN or not.

    @thomaskr

    Please take look at rewrite rules examples and links in plugin “Help”, top-right on settings page.

    Thread Starter ThomasKr

    (@thomaskr)

    Thanks for the link Dragan, got it all working.

    Hi @thomaskr,

    Please, can you share your successful rewrite rules solution for this free plugin, with our WordPress Support community?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rewrite rules for Apache and Nginx’ is closed to new replies.