How to add a cache busting mechanism to WorkflowGen


Adding a cache busting mechanism to WorkflowGen is useful because it eliminates the need to clear the browser cache after upgrades to see the most recent updates. Developers can make these updates available to end-users immediately without having to clear their caches.

To add a cache busting mechanism:

  1. Download and install URL Rewrite on the WorkflowGen IIS web server.

  2. Create a new web.config file with the following contents and add it to the wfgen folder’s parent folder, replacing the version number in the <conditions> and <action> tags (v=X.X.X) with your version of WorkflowGen (this example uses v=7.1.0 for version 7.1.0), or you can use your own business rules.


    • Whenever you upgrade WorkflowGen, you’ll have to replace X.X.X with the new version number, or your own business rules.

    • You can add other file types in the <match> tag, such as .png or .svg files.
    <?xml version="1.0" encoding="UTF-8"?>
                    <rule name="CSS/JS versioning" stopProcessing="true">
                        <match url="(.*)(\.css|\.js)$" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" />
                            <add input="{QUERY_STRING}" pattern="v=7.1.0" negate="true" />
                        <action type="Redirect" url="{R:0}?v=7.1.0" redirectType="Permanent" />

Large icons appearing in the user interface after a WorkflowGen upgrade