cancel
Showing results for 
Search instead for 
Did you mean: 

Absolute URL in IWDCachedWebResource expires quickly

Former Member
0 Kudos

Hi,

I am displaying a PDF file in an IFrame where the frame points to an absolute URL accessed by a method of the class IWDCachedWebResource.

The code snippet:

IWDCachedWebResource genResource = WDWebResource.getWebResource( byte[], WDWebResourceType.PDF);

wdContext.nodeXXXXX.setIFrameURL(genResource.getAbsoluteURL());

This absolute URL expires very quickly leavng a 404 Not Found exception.

Can we influence this setting making this absolute URL to last longer?

Regards

MK

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Meesum,

Try to add line: genResource.setReadOnce( false )

Otherwise there is a risk that WD invalidates cached resource after first read (this may be HEAD request from browser).

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Answers (1)

Answers (1)

roberto_tagliento
Active Contributor
0 Kudos

Seem strange.

Very quickly, how long?

launch the code, often. Into a wdModifyView.

Really seem strange.

Former Member
0 Kudos

Hi Roberto,

In less than 2 min is the document at the server generated URL no more available.

Former Member
0 Kudos

Hi,

I had no option but to save it temporarily on the server and read from there after the document expires from the runtime cache.