Modify ↓
#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?
- Add WMS layer
- 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)
Change History (7)
by , 10 years ago
Attachment: | cache_wms.patch added |
---|
comment:1 by , 10 years ago
Keywords: | cache added |
---|
comment:2 by , 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 , 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
comment:4 by , 10 years ago
Milestone: | → 14.11 |
---|---|
Summary: | use HTTP caches for WMS imagery → [patch] use HTTP caches for WMS imagery |
Note:
See TracTickets
for help on using tickets.
Patch to cache WMS tiles