cancel
Showing results for 
Search instead for 
Did you mean: 

NW Cache issues

Former Member
0 Kudos

Hi All,

We're generating charts in PNG format, stored in the project WEB area. Each 15 mins they're updated with a BLS transaction.

When requesting these images in the browser with auto authentication (j_user&j_password in the URL) NW gives me always the 1st downloaded image(more than 1 day old). I even tried to avoid caching by using special links with a fake &IdentID=(randomPasswdtype string) at the end, but still no luck. Same old graphics are received at the client, no matter the xacute updates on them.

QUESTION - How can I disable the NW cache? Browser cache is not an issue (I deleted the cached files manually each time).

Many thanks,

paul

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

Are you using the "web" or "db" url when you generate these images? The "web" one publishes the file where as "db" does not. You could also use the blowout url if necessary to publish the files

http://<server>:<port>/XMII/Catalog?mode=blowout&folder=projectname/foldertopublish

Jamie

Former Member
0 Kudos

Hi Jamie,

I was using the db:// path in generating those png's. I can understand now the problem, these items not being published.

My 1/2 workaround was to FTP them to a 3rd party location, but then, there are 870+ images auto-generated every 15 minutes. It was taking as long to FTP PUT them individually using MII .. and I used the img combiner to lower their number to about 270. Still to many for individual ftp-put. Now I'm thinking to use a batch script to "multiple-put" the files at the final location. Maybe there is a way to launch a BAT file from MII .. or else I'll win-schedule it to start after the BLS transaction is finished

My main issue was that I could not use the chart servlet to generate images on the fly for iPhone/iPad. For whatever reason, the src in the <img> tag is not fully understood as a PNG file by Safari. With the PNG files built on the server there are no compatibility issues. Another drawback in using the chart servlet is that SUP (as in Sybase Unwired Platform) truncates my URL STRINGS when sync'ing between the databases and I need the URLs as short as possible.

Thanks a lot for the solution, as well as for the blowout option. web:// it is.

paul.

Answers (0)