Opened 6 years ago

Last modified 7 weeks ago

#11298 closed defect

Extra caching when run under JavaWebStart — at Version 1

Reported by: SergeyAstakhov Owned by: team
Priority: major Milestone:
Component: Core Webstart Version: tested
Keywords: cache webstart Cc: wiktorn

Description (last modified by SergeyAstakhov)

Since JDK 7 Update 2 they turned on feature of caching any resouces downloading by URLConnection. Quote from doc (

"Caching enabled by default: Caching of network content for application code running in Web Start mode is now enabled by default. This allows application improved performance and consistency with applet execution mode. To ensure the latest copy of content is used, the application can use URLConnection.setUseCaches(false) or request header Cache-Control values no-cache/no-store."

This is lead to two problem (and may be to others):

  1. Bing attribution data is not updated properly, so new images (when bing updated it) does not displayed in JOSM.
  2. Imagery tiles is cached twice (in JWS cache and JOSM cache) and just waste disk space and degrade performance.

The first problem is especially troubling.
Can you fix this?

Change History (2)

Changed 6 years ago by SergeyAstakhov

Attachment: JWSCacheResources.png added

comment:1 Changed 6 years ago by SergeyAstakhov

Description: modified (diff)
Note: See TracTickets for help on using tickets.