Skip to content
Shannon Deminick edited this page Apr 27, 2015 · 4 revisions

What is a 'Rogue File'?

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 or link 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.

Requirements

In order for Rogue file detection to work, you must have the CDF HttpModule registered in your web.config (see Configuration for details)

Clone this wiki locally