Support » Plugin: W3 Total Cache » Inefficient nginx location directive

  • Some of location directive on nginx.conf create by W#TC are duplicate. Maybe can be fixed for next release

    location ~ \.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml)$ {}

    location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip)$ {}

    And this is new directive that appear on 0.9.6 (I skipped 0.9.5.3)

    location ~ \.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw)$ {}

    You can see some extension similarity here. Especially with new location directive, every one of them is similar with the second directive here.

  • The topic ‘Inefficient nginx location directive’ is closed to new replies.