Clear the Internet Explorer temporary files to see recently updated images
Summary
If you update an image file in a Rule-File-Binary rule that you use as your login form or in other parts of an application user interface, users may not see the change immediately.
The first time a user starts Process Commander, such static files as JPG images, GIF images, and JavaScript code stays, by default, in the user's Internet Explorer cache for up to 24 hours. Internet Explorer sends a second browser request for the same file from the server only when 24 or more hours have elapsed since the initial request.
To remedy this, users can clear the Internet Explorer cache and see the revised images immediately.
Suggested Approach
For an immediate update of a login screen image on your browser, clear the cache in Internet Explorer as described here for versions 6 and 7.
On Internet Explorer 7
- Select Tools > Internet Options in the menu bar.
- In the Internet Options window, select the General tab and click Delete in the Browsing history section.
- In the Delete Browsing History window, click the Delete Files button in the Temporary Internet Files section.
Click Yes in Delete Files confirmation form. This clears the browser cache.
- Click Close in the Delete Browsing History window, and click OK in the Internet Options window.
- Press F5 in Internet Explorer to refresh all the files that make up the current window. This forces the browser to access the server and to obtain the latest, updated static content.
On Internet Explorer 6
- Select Tools > Internet Optionsin the menu bar.
- In the Internet Options window, select the General tab and click Delete Files.
- Select Tools > Internet Optionsin the menu bar.
- In the Delete Files window, click the Delete all offline content check box and then click OK. This clears the browser cache.
- Click OK to close the Internet Options window.
- Press F5 in Internet Explorer to refresh all the files that make up the current window. This forces the browser to access to the server to obtain the latest, updated static content.
Example
In this example, you want to customize the login form. The login form information is stored in two rules.
- The HTML rule named @baseclass.Web-Login which contains the text and layout of the form. The circled section points to the .gif file which holds the actual image, named image19.gif.
- The HTML rule named @baseclass.Web-Login which contains the text and layout of the form. The circled section points to the .gif file which holds the actual image, named image19.gif.
- The image19.gif instance of Rule-File-Binary (which is the actual picture) as shown in this example.
Assume that you have copied the Web-Login and image19.gif rule instances into your application RuleSet. You want to keep the HTML text as is and maintain the reference to image19.gif.
First, override the image19.gif instance using a new .GIF file as shown here.
Next, make the RuleSet containing the image (AlphaCorp) available to the PegaRULES:Unauthenticated access group.
Development is complete. However, users must clear and refresh their browser as described above to see the updated login form.