• Resolved Antonio Augusto

    (@antonio24073)


    Hi I’m using Photon cdn (jetpack) and the urls are getting like this:
    https://i0.wp.com/ae01.alicdn.com/kf/H749657e308004e7da78e53c9d63e868f8.jpg?w=1200&ssl=1
    I’m using nginx and webp express. My conf is:

    
    # ini webp express
        location ~* ^(/.+)\.(jpg|jpeg|jpe|png|gif)$ {
            add_header Vary Accept;
    
            if ($http_accept ~* "webp"){
                set $imwebp A;
            }
            if (-f $request_filename.webp) {
                set $imwebp  "${imwebp}B";
            }
            if ($imwebp = AB) {
                rewrite ^(.*) $1.webp;
            }
        }
    # end webp express

    I need to bypass the alicdn. Some idea?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bypass to Photon cdn (jetpack)’ is closed to new replies.