IIS Virtual Directory File Size Limit
Recently I ran into an issue where cetain images served from a virtual directory, mapped to a Network Attached Storage (NAS) device via a UNC path would not display. After quite a bit of detective work I noticed that the images failing to display where those of about 600KB in size. If I resized the images they under 200KB they dispalyed fine. I found some information on MSDN that states that IIS the remote files for faster delivery. Periodically, IIS poles the remote locations (UNC Paths) for file changes. I found the following registry entry which I believe to be the cause:
|
Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters |
|
Data Type: REG_DWORD |
|
Default Value: 256 KB (262,144 bytes) |
|
Controls the maximum size of cache files. The default is 256 KB if no value is present. |