BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-24-2008, 10:55 AM   #1
Onosa
New Member
 
Join Date: Jun 2008
Model: 8800
Carrier: n/a
Posts: 14
Question .JAD issue, browser cache problem. Help

Please Login to Remove!

Hello,

Currently, the users for my application manually download the application using the BlackBerry broswer. The problem is, when a new version of the program is ready, the BlackBerry browser will see the old .jad file instead of the new one that's out there. I'm assuming this is a cache problem, because if a user refreashes the page, they will see the new version with all of it's data (New version number and file size).

Since most users wouldn't think to refresh the page, I need a feature that will always show the current .jad file, which means skipping whatever is in the BlackBerry broswers cache.

Is there a way to do this?

Thank you.
Offline  
Old 09-25-2008, 08:42 AM   #2
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

Check the documentation of your Web Server software to see what kind of cache control it provides for files. HTTP caching is controlled by a header sent along with the page (or file) that tells caching proxies and requesting clients how long the file is valid. Browsers will not re-request a file that the server has indicated is still valid unless the user refreshes the page. You may be able to turn caching in the Blackberry off, or reduce it, but you users are not likely to be happy with the results.
Offline  
Old 09-30-2008, 03:14 AM   #3
myraddin
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Default

I unfortunately had similar OTA deployment problems with the browser.
It seems that the browser doesn't check (send HEAD request to the http server) the file on the server, but instead just retrieves what it has in the cache.

My problem was solved by manually clearing the cache before every update of the same application.

I am sorry for not having any other idea, just wanted to share the experience I had.
Offline  
Old 09-30-2008, 12:59 PM   #4
Onosa
New Member
 
Join Date: Jun 2008
Model: 8800
Carrier: n/a
Posts: 14
Default

My users probably wouldn't like to remove the cache before every update. I tried setting the the http header information to no cache, and that seems to work. Thank you for everyones help.
Offline  
Old 10-01-2008, 01:22 AM   #5
myraddin
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Default

Quote:
Originally Posted by Onosa View Post
My users probably wouldn't like to remove the cache before every update. I tried setting the the http header information to no cache, and that seems to work. Thank you for everyones help.
Good trick.
So the Browser obeys that rule ...
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Welch Allyn Standard (bulb) MAC 2 Laryngoscope Blade #69042 New in OEM Box picture

Welch Allyn Standard (bulb) MAC 2 Laryngoscope Blade #69042 New in OEM Box

$19.77



10 Feet/3M For iPhone 13 12 11 PRO MAX MINI  X XR XS 8 7 Fast Charging USB Cable picture

10 Feet/3M For iPhone 13 12 11 PRO MAX MINI X XR XS 8 7 Fast Charging USB Cable

$5.00



OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet  picture

OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet

$2.99



iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M picture

iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M

$4.99



18 x Sunmed Macintosh Standard (Lamp) Laryngoscope Blades, Size 2, OEM ~17016 picture

18 x Sunmed Macintosh Standard (Lamp) Laryngoscope Blades, Size 2, OEM ~17016

$129.99



18309-0090 Carter Hoffmann Appl Leg Rubber Foot Genuine OEM CAR18309-0090 picture

18309-0090 Carter Hoffmann Appl Leg Rubber Foot Genuine OEM CAR18309-0090

$55.95







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.