This is an HttpModule installed in the web application that manages the requests made on different files (* .css, * .js, * .aspx, * .ashx).
Each time a page of the application is requested for the first time, the client browser (Chrome, Firefox, IE, etc.) asks for and reads each of the documents that compose the page (style sheets, javascript, AJAX, etc) to interpret them. The consecutive times it reads the resource files from its cache.
The problem arises when we refresh the page with "Ctrl + F5" and we hope that the request will come back to the IIS and that the HttpModule will take care of its treatment, and it is not like that, the request does not arrive to HttpModule with which the IIS ends up serving the original version of the file without the filter treatment .
I understand that the file is read from a different cache than the browser, and it is not the web application.
The HttpModule installation was done in the web.config of the application:
<system.webServer>
<!-- Sección para los módulos con canalización integrada (IIS 7) -->
<modules runAllManagedModulesForAllRequests="true">
<remove name="ServiceModel" />
<add name="MiHttpModule" type="MiNamespace.MiHttpModule, MiNamespace" preCondition="" />
</modules>
</system.webServer>
Edit: From the installation of the Module in the web.config, I have removed preCondition="managedHandler", since the resources * .css and * .js are not handled by the IIS manager. ( INFO )