57 people following this project (follow)

Debugging/Clearing Cache

This is very important to note:

When you're creating a website, you don't want ClientDependency to be combining, caching & compressing all of your files because you need to be able to debug your JavaScript and CSS in the browser so keep this in mind... Setting <compilation debug="true"> will disable all combining, caching, compressing, rogue script detection, etc... !!

If you have debug set to false and you want clear the ClientDependency cache, you can do one of the following things:
  • Change the version number in the ClientDependency config
  • Delete the ClientDependency folder from App_Data
  • You DO NOT have to restart the app pool to clear ClientDependency cache

Configuration

  • Contains all of the details regarding the configuration section required to use the client dependency library.

Composite Url Types

  • Contains all of the information about the 3 composite URL types and the pros/cons for each.

File registration and the loader control

  • Contains all of the details on how to register JavaScript or CSS files for your controls in ASP.Net Web Forms

File registration and MVC Renderers

  • Contains all of the details on how to register JavaScript or CSS files for your controls in ASP.Net MVC

Forced providers

  • Contains information about how to force the use of particular provider for specific files
  • This is an advanced technique but quite useful in many cases

Composite files

  • Contains all of the information about composite files, how they are created, where they are stored, how caching works and how to customize it
  • Includes information about 'Rogue' CSS/JS files that are found in the raw html markup of a rendered page and how they are combined/minified

Last edited Aug 25 2011 at 12:49 AM by Shandem, version 16

Comments

No comments yet.