Skip to content
Permalink
Browse files

Disable the prefetching of images from OWS services

See:
https://lists.osgeo.org/pipermail/qgis-developer/2021-February/063165.html
and a followup of
#41832

Never prefetch tiled OWS layers
  • Loading branch information
rduivenvoorde authored and github-actions committed Mar 31, 2021
1 parent 66c8ec6 commit 32d7e995c4ed189c7ca7a0b3944e9838051f3ad0
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/wms/qgswmsprovider.cpp
@@ -2016,7 +2016,8 @@ int QgsWmsProvider::capabilities() const
// See: https://github.com/qgis/QGIS/issues/34813
if ( !( mSettings.mTiled && mSettings.mXyz && dataSourceUri().contains( QStringLiteral( "openstreetmap.org" ) ) ) )
{
capability |= Capability::Prefetch;
// March 2021: *never* prefetch tile based layers, see: https://github.com/qgis/QGIS/pull/41953
// capability |= Capability::Prefetch;
}

QgsDebugMsgLevel( QStringLiteral( "capability = %1" ).arg( capability ), 2 );

0 comments on commit 32d7e99

Please sign in to comment.