Technote Details :: When working with various server behaviors I get random JavaScript errors.
Issue
When working with Dreamweaver and extensions I sometime encounter JavaScript errors. Sometimes the errors do not reproduce after I restart Dreamweaver, sometimes they persist.
Reason
Dreamweaver caches some of the most used JavaScript code and data and stores it in its cache files. The entire cache system is coordinated by a single file (***filecache***.dat) which acts as an index of the cache files. Sometimes, the cache index file gets corrupted, which results in random JavaScript errors.
Solution
Dreamweaver recreates the cache index file if it is not found in the default location. Therefore, one solution to these problems is to manually delete the cache index file:
- Close Dreamweaver.
- Browse to the cache index file and delete it. The file is located:
-
- For Dreamweaver 8 on Windows, it is stored in <system_drive>:\Documents and Settings\[username]\Application Data\Macromedia\Dreamweaver 8\Configuration\WinFileCache-xxxxxxxx.dat.
- For Dreamweaver MX 2004 on Windows, it is stored in <system_drive>:\Documents and Settings\[username]\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\FileCache.dat
- On Mac OS: Macintosh HD:Users:MAC_User:Library:Application Support:Macromedia:Dreamweaver MX 2004:Configuration:MacFileCache-xxxxxx.dat
- The file name varies based on the Dreamweaver version and installation. The xxxxxx section marked in the file names above represent a random number that is generated by Dreamweaver during install, and which is particular for each system.
- Restart Dreamweaver. The cache index will be recreated, and the JavaScript errors should disappear.
The Application Folder is by default marked as Hidden and will not be visible. To display it on Windows you must folow these steps:
- Open a folder of choice with the Windows Explorer.
- Go to Tools > Folder Options.
- Switch to the View tab.
- Check the Show hidden files and folders radio button. Click OK to apply the changes.

See Also