-
-
Notifications
You must be signed in to change notification settings - Fork 65
Rogue Files
Shannon Deminick edited this page Apr 27, 2015
·
4 revisions
Normally when using CDF you would register all of your dependencies using the CDF framework. However if you have a legacy project and simply have standard html <link>
and <script>
tags in your HTML (Rogue Files), CDF will automatically be able to detect these in the outputted html from ASP.Net and replace them with a compressed version!
- The term 'Rogue' files describes any JS or CSS file registered in the raw html markup using
script
orlink
tags instead of being registered in with the CDF. - Though CDF will ensure that these are compressed/minified (if you enable it in the configuration), it is not a recommended practice because these files cannot be combined and therefore there will be more http requests. It is recommended to register your dependencies property with CDF.
- Enabling and disabling this functionality is done in the configuration section:
rogueFileCompression
by defining for which paths and extensions to perform the replacements.
In order for Rogue file detection to work, you must have the CDF HttpModule registered in your web.config (see Configuration for details)