Summary
Note: The changes documented in this article are included with Laserfiche 11 Update 1.
Administrators can use the URL Rewrite module for IIS to to insert a cache-control header in web client responses. If the URL Rewrite module is not installed for the IIS hosting the web client, please download the extension from the official Microsoft website.
If you have Laserfiche web client 10.4.2 Update 1 installed, perform the following steps:
<rule name="Set Cache-Control cacheability"> <match serverVariable="RESPONSE_Cache-Control" pattern=".*" /> <action type="Rewrite" value="no-cache, no-store, must-revalidate" /> </rule>
Saving the rule to will configure the web client to rewrite the "Cache-Control" header in a web client responses to:
no-cache, no-store, must-revalidate
Additional Information
If you are using a previous version of Laserfiche web client 10.x, perform the following steps before adding the cache-control rule.
<httpCookies requireSSL="true"/>
<outboundRules configSource="outboundRules.config"/>
<outboundRules> <rule name="Set SameSite to None in the middle"> <match serverVariable="RESPONSE_Set_Cookie" pattern="(.*)SameSite=([a-zA-Z]+);(.*)" negate="false" /> <action type="Rewrite" value="{R:1}SameSite=None;Secure;{R:3}" /> </rule> <rule name="Set SameSite to None at the end"> <match serverVariable="RESPONSE_Set_Cookie" pattern="(.*)SameSite=" negate="false" /> <action type="Rewrite" value="{R:1}SameSite=None;Secure" /> </rule> <rule name="Add SameSite if it does not exist"> <match serverVariable="RESPONSE_Set_Cookie" pattern=".*"/> <conditions logicalGrouping="MatchAll"> <add input="{R:0}" pattern="(.*)SameSite=" negate="true"/> </conditions> <action type="Rewrite" value="{R:0}; SameSite=None;Secure" /> </rule> </outboundRules>