The “Enable Cache” setting in the Recording option is not working properly

The Enable Cache setting (in URL-based scripting) does not work properly. The settings in Internet Explorer do not influence how VuGen records. With the same option selected, VuGen may and may not record extra resources. For example, recording against the site http://www.google.com following the steps below:

1. Create a Web URL-based script with the following options selected:

Create concurrent groups for resources after their source HTML page

Clear cache before recording (Microsoft Internet Explorer only)

The recording creates three events: cookie, google HTML page, and logo.gif.

2. Close the existing script. Create a Web URL-based script with the following options selected:

Create concurrent groups for resources after their source HTML page

Enable cache (do not suppress the IF-Modified-Since header)

The recording creates three events: cookie, google HTML page, and logo.gif.

3. Close the existing script. Create a Web URL-based script with the following options selected (same settings as step 2):

Create concurrent groups for resources after their source HTML page

Enable cache (do not suppress the IF-Modified-Since header)

The recording creates two events: cookie, and google HTML page.

Note:

This time the recording creates only two events.

Check the following on how the cache setting in the Recording option works In the default recording (step 1 above), the recorder removes not only the request header "IF-Modified-Since," but also the request header "If-None-Match" and the response headers "Last-Modified", "Expires" and "Etag."

When the browser does not get any of those response headers, it does not store the image in the cache. This is the reason that after step 1 the image is not in the browser cache.

In step 2 (above), the "Enable cache" option is selected so the recorder is not removing those headers. The browser sends request for the image and stores it in the cache.

The request header for the image in google is "Expires: Sun, 17 Jan 2038 19:14:07 GMT," which means that the browser will not send any requests for this image until the expiration date. This is why the image is not recorded in step 3.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s