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


NS1-63-NA. EATON /Moeller breaker  MAIN SWITCH  63 AMPS picture

NS1-63-NA. EATON /Moeller breaker MAIN SWITCH 63 AMPS

$375.00



ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR picture

ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR

$17.99



Dusk to Dawn Photocell Light Switch Auto ON Off Light Sensor Control Switch picture

Dusk to Dawn Photocell Light Switch Auto ON Off Light Sensor Control Switch

$55.88



Water Pressure Switch Water Pump Pressure Switch 60/80 Pressure Switch for Wa... picture

Water Pressure Switch Water Pump Pressure Switch 60/80 Pressure Switch for Wa...

$30.35



Dual Power Automatic Transfer Switch kit 63 A 4P ATS Generator Changeover Switch picture

Dual Power Automatic Transfer Switch kit 63 A 4P ATS Generator Changeover Switch

$26.93



HITBOX Foot Pedal Switch 5-Pin TIG Remote Controller with Switch HBT250P AC/DC picture

HITBOX Foot Pedal Switch 5-Pin TIG Remote Controller with Switch HBT250P AC/DC

$30.29







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