Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10673 closed defect (fixed)

[patch] use HTTP caches for WMS imagery

Reported by: wiktorn Owned by: team
Priority: normal Milestone: 14.11
Component: Core imagery Version: tested
Keywords: template_report cache Cc:

Description

What steps will reproduce the problem?

  1. Add WMS layer
  2. Check Cache-Control and Pragma HTTP headers for WMS requests

What is the expected result?

If it is possible, use external caches for WMS layers

What happens instead?

Cache-control: no-cache and Pragma: no-cache headers are sent.

Please provide any additional information below. Attach a screenshot if possible.

Revision: 7643
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: Don-vip
Last Changed Date: 2014-10-21 21:19:16 +0200 (Tue, 21 Oct 2014)
Build-Date: 2014-10-21 19:23:06
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 7643

Identification: JOSM/1.5 (7643 en) Windows 7 64-Bit
Memory Usage: 99 MB / 3068 MB (9 MB allocated, but free)
Java version: 1.8.0_25, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.security.manager, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.vmargs=LVhYOitVc2VHMUdDAC1EamF2YS51dGlsLkFycmF5cy51c2VMZWdhY3lNZXJnZVNvcnQ9dHJ1ZQA=, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.splashport=51830, -Djnlpx.home=<java.home>\bin, -Djnlpx.remove=false, -Djnlpx.offline=false, -Djnlpx.relaunch=true, -Djnlpx.session.data=C:\Users\w\AppData\Local\Temp\session7791484715169129261, -Djnlpx.heapsize=NULL,NULL, -Djava.security.policy=file:C:\Program Files\Java\jre1.8.0_25\lib\security\javaws.policy, -DtrustProxy=true]
Dataset consistency test: No problems found

Plugins:
- geotools (30762)
- jts (30762)
- opendata (30762)
- photo_geotagging (30762)
- utilsplugin2 (30762)

Last errors/warnings:
- E: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- E: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- E: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- E: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- E: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out

Attachments (1)

cache_wms.patch (626 bytes ) - added by wiktorn 10 years ago.
Patch to cache WMS tiles

Download all attachments as: .zip

Change History (7)

by wiktorn, 10 years ago

Attachment: cache_wms.patch added

Patch to cache WMS tiles

comment:1 by Don-vip, 10 years ago

Keywords: cache added

comment:2 by bastiK, 10 years ago

Are you sure? Java documentation says this is already the default value, so you don't have to set it to true.

comment:3 by wiktorn, 10 years ago

org.openstreetmap.josm.tools.Utils.java:657 invokes:

connection.setUseCaches(false)

I guess that it's not without a reason (probably not to cache OSM API invocations), so I decided to put it here

Last edited 10 years ago by Don-vip (previous) (diff)

comment:4 by Don-vip, 10 years ago

Milestone: 14.11
Summary: use HTTP caches for WMS imagery[patch] use HTTP caches for WMS imagery

comment:5 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

In 7659/josm:

fix #10673 - use HTTP cache for WMS imagery (patch by wiktorn)

comment:6 by Don-vip, 10 years ago

thanks for the patch! :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.