Go back to the main page

Debugging applications that use behaviors and another tip

This article is over 2 years old. Proceed with caution.

Regards ♨ – Minimul

 

Clearing the cache

When locally debugging a Web application that uses behaviors(htc files) you need to delete the IE cache before testing each change in the htc file. Here is an example:

C:\Documents and Settings\Christian\Local Settings>del /s myselectbox* # Notice the directory.

Apache httpd.conf configuration for Web applications that use Behaviors .htc

If you are using Apache and your web app uses Microsoft's behaviors(.htc files) for IE you need to use this optimization. For some reason Apache does not handle .htc files well -- there is a tremendous amount of header requests that go back and forth when .htc files and Apache are in action together. This optimization will put an end to the excessive header requests.

### mod_expires settings
AddType text/x-component .htc
ExpiresActive On
ExpiresByType text/x-component "access plus 1 day"

Comment on this article?