Skip to content

Instantly share code, notes, and snippets.

@JamoCA
Last active January 5, 2016 16:13
Show Gist options
  • Save JamoCA/0b7d34e1222cf2a05ec2 to your computer and use it in GitHub Desktop.
Save JamoCA/0b7d34e1222cf2a05ec2 to your computer and use it in GitHub Desktop.
Default IISpeed configuration for IIS/ColdFusion
# enable iispeed on this website
IISpeed on
#IISpeed diagnose
# enable certain filters
# more filters at http://www.iispeed.com/pagespeed/optimizations
IISpeed RewriteLevel CoreFilters
IISpeed EnableFilters insert_dns_prefetch
IISpeed EnableFilters collapse_whitespace,trim_urls
IISpeed EnableFilters combine_javascript
IISpeed EnableFilters lazyload_images,convert_jpeg_to_progressive,convert_jpeg_to_webp
IISpeed EnableFilters inline_import_to_link,inline_css
IISpeed EnableFilters prioritize_critical_css,move_css_above_scripts,move_css_to_head
IISpeed EnableFilters inline_google_font_css;
IISpeed EnableFilters rewrite_javascript
IISpeed EnableFilters rewrite_css
IISpeed EnableFilters extend_cache
IISpeed EnableFilters resize_mobile_images
IISpeed EnableFilters resize_rendered_image_dimensions
IISpeed InPlaceResourceOptimization off
IISpeed RetainComment " Website*"
IISpeed MapOriginDomain http://www.website.com https://www.website.com
# Configure loading static files from disk using whitelisting:
# more info at http://www.iispeed.com/support/configuration
IISpeed LoadFromFile "http://www.website.com/images/" "c:\www\website\images\"
IISpeed LoadFromFile "http://www.website.com/_scripts/" "c:\www\website\_scripts\"
IISpeed LoadFromFile "http://www.website.com/userfiles/" "c:\www\website\userfiles\"
IISpeed LoadFromFile "http://www.website.com/downloads/" "c:\ftp\website\downloads\"
#IISpeed Disallow */ajax_scripts*
#IISpeed Disallow */admin_directories/*
# By default - don't allow anything to load
IISpeed LoadFromFileRuleMatch Disallow .*
# But do allow these file extensions. Note that assets with querystrings won't match, and will still be fetched via http
IISpeed LoadFromFileRuleMatch Allow \.(css|js|pdf|gif|jpe?g|png|woff|otf|svg|ttf|eot|swf|ico|bmp)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment