Changelog
1.4.1
No changes of the code. The tag of version 1.4.0 was moved after its publication, so Composer could not install it anymore. If the update to 1.4.0 failed, update to 1.4.1.
1.4.0
Upgrade instructions
- Run the database analyzer (Admin Tools > Maintenance > Analyze Database Structure). The table of the nominatim cache gets a new index.
- Run the upgrade wizard "Tile Proxy: set the contact for the User-Agent" (Admin Tools > Upgrade > Upgrade Wizard) or enter a contact in the extension configuration, see Administration.
- Check the changes of the behaviour below.
Changes of the behaviour
Tile proxy
- The argument
s(subdomain) is optional and ignored. The tiles are always loaded fromhttps://. Existing integrations which sendtile. openstreetmap. org sstill work. - The values of
z,xandymust address an existing tile (zoom level 0 to 19). Other requests are rejected with error 1000 and never forwarded to OpenStreetMap. - If the maximum cache size is reached, the oldest tiles are removed until 90% of the limit are used. Before, all further tiles were only passed through.
- If OpenStreetMap is not reachable, an outdated tile from the cache is delivered if there is one, otherwise the error tile. Both are sent with a caching time of 60 seconds. Before, the error tile was sent with the full caching time of the endpoint.
Nominatim proxy
- Only the parameters of the nominatim-api are forwarded, unknown parameters are dropped. The existing cache records are not used anymore and expire.
- Requests which are not answered from the cache are sent with an interval of one second (usage policy of nominatim). A request which would have to wait for more than 3 seconds is rejected with the HTTP status 429 and error 1007.
Both
- The User-Agent of the requests to OpenStreetMap contains the version of the extension and a contact, e.g.
Tile-.Proxy- PHP/ 1. 4. 0 (TYPO3 extension tile_ proxy; +webmaster@example. org) - The referrer is compared with the host of the request without the port and case insensitive. The reverse proxy configuration of TYPO3 is respected.
For developers
Tilehas no argumentProxy Controller:: build Url By Type () $sanymore.- The dependencies of the controllers, the middleware and the repository are injected by the constructor. Classes which extend them have to pass the dependencies to the parent constructor.
Constants::is deprecated, useREQUEST_ USER_ AGENT Codemacher.Tile Proxy Service Extension Settings:: get User Agent ()
Features
- Tiles are delivered with
ETagandLast-, a matchingModified If-is answered with the HTTP status 304.None- Match - New extension setting for the contact which is sent in the User-Agent, with an upgrade wizard for existing installations.
- The maps in the backend are loaded much faster (435 KB instead of 3.2 MB of JavaScript).
Bugfixes
- A tile which could not be passed through caused an error 500.
- Network errors and timeouts of the requests to OpenStreetMap caused an error 500. The requests have a timeout of 10 seconds now.
- The size of the cache folder was calculated on each request, even if the tile was already cached.
- Two identical requests to the nominatim proxy at the same time could cause an error 500.
- An endpoint page which was never saved with its settings caused an error 500.
- The bounding box in the backend was wrong for the western and southern hemisphere.
- Tiles are written to a temporary file first, so a half written tile is never delivered.