YetaWF Documentation


Defeat Browser/Server Caching

Turn Off Caching

When developing CSS or JavaScript/TypeScript, you frequently update the site's CSS and JavaScript files. Browsers and servers have the habit of caching these for you, so reloading the page in your browser won't update the files and you can't test your changes.

In order to turn off server caching and browser caching you can add the following to your AppSettings.json file. This will turn off caching at the expense of performance. This should only be used in a development environment.

This is present in the default AppSettings.json file.

  "Application: {
    "P": {
      . . .
      "YetaWF_Core": {
        . . .
        "DEBUG-MODE": "true",
        . . .