Plugin Directory

Changeset 2904057


Ignore:
Timestamp:
04/25/2023 06:15:00 PM (3 years ago)
Author:
richarddegoffau
Message:

readme fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fastware-webpavif/trunk/readme.txt

    r2904056 r2904057  
    8484In the **http** section (outside the **server** section):
    8585
    86     map \$http_accept \$webp {
     86    map $http_accept $webp {
    8787        default ".nonexisting";
    8888        "~*image/webp" ".webp";
    8989    }
    9090
    91     map \$http_accept \$png {
     91    map $http_accept $png {
    9292        default ".png";
    9393        "~*image/webp" "";
    9494    }
    9595
    96     map \$http_accept \$avif {
     96    map $http_accept $avif {
    9797        default ".nonexisting";
    9898        "~*image/avif" ".avif";
     
    102102*(Change the **wp-content** part if this folder is in a non-standard location.)*
    103103
    104     location ~* wp\-content/(?!cache/fastware\-webpavif).+\.(jpe?g|png|gif|bmp|webp)\$ {
    105         rewrite /wp\-content/(.+)\$ /wp-content/cache/fastware-webpavif/\$1;
     104    location ~* wp\-content/(?!cache/fastware\-webpavif).+\.(jpe?g|png|gif|bmp|webp)$ {
     105        rewrite /wp\-content/(.+)$ /wp-content/cache/fastware-webpavif/$1;
    106106    }
    107107
    108     location ~* cache/fastware\-webpavif.+\.(jpe?g|png|gif|bmp)\$ {
     108    location ~* cache/fastware\-webpavif.+\.(jpe?g|png|gif|bmp)$ {
    109109        add_header Vary Accept;
    110         try_files \$uri.pref\$webp \$uri.pref\$avif \$uri\$webp \$uri\$avif \$uri /?fw-webp-avif-ondemand=all;
     110        try_files $uri.pref$webp $uri.pref$avif $uri$webp $uri$avif $uri /?fw-webp-avif-ondemand=all;
    111111    }
    112112
    113     location ~* cache/fastware\-webpavif.+\.webp\$ {
     113    location ~* cache/fastware\-webpavif.+\.webp$ {
    114114        add_header Vary Accept;
    115         try_files \$uri\$png /?fw-webp-avif-ondemand=png;
     115        try_files $uri$png /?fw-webp-avif-ondemand=png;
    116116    }
    117117
Note: See TracChangeset for help on using the changeset viewer.