forked from davemcdermid/AdaptiveImages
/
Sample.Web.config
26 lines (26 loc) · 1.46 KB
/
Sample.Web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<!--the resolution break-points to use (screen widths, in pixels)-->
<add key="AdaptiveImages.ResolutionBreakpoints" value="1382, 992, 768, 480"/>
<!--where to store the generated re-sized images. This folder must be writable-->
<add key="AdaptiveImages.CachePath" value="ai-cache"/>
<!--the quality of any generated JPGs on a scale of 0 to 100-->
<add key="AdaptiveImages.JpegQuality" value="80"/>
<!--check that the responsive image isn't stale (ensures updated source images are re-cached)-->
<add key="AdaptiveImages.WatchCache" value="true"/>
<!--How long the BROWSER cache should last in seconds. (604800 - 7 days by default)-->
<add key="AdaptiveImages.BrowserCache" value="604800"/>
<!-- If there's no cookie false sends the largest var resolutions version (TRUE sends smallest)-->
<add key="AdaptiveImages.MobileFirst" value="true"/>
<!--the name of the cookie containing the resolution value-->
<add key="AdaptiveImages.CookieName" value="resolution"/>
</appSettings>
<system.webServer>
<handlers>
<add name="AdaptiveImageHandlerGif" path="*.gif" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
<add name="AdaptiveImageHandlerJpg" path="*.jpg" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
<add name="AdaptiveImageHandlerPng" path="*.png" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
</handlers>
</system.webServer>
</configuration>