On Wed, Oct 10, 2018 at 12:00 PM Andrea Aime <[email protected]>
wrote:

> I'll work in this direction and prepare a couple of PRs
>

Here we go:
* GWC side: https://github.com/GeoWebCache/geowebcache/pull/694
* GeoServer side: https://github.com/geoserver/geoserver/pull/3175

For the GeoServer side I've tried to use the old mime type when doing a
request, while only the new mime type is enabled,
it still works and returns a HIT, so it's still using the cache (I was
making a WMTS request).
For the config UI I played a small trick in order to maintain backwards
compatibility: if GWC or a layer was configured
to use the legacy format, it will still appear in the UI as a cached
format, but allowing the configurator an option to
switch to the new one.
Once the old one is removed from the configuration, it won't show up in the
UI anymore.
Hopefully this will allow a smoother migration for the hosts that were
configured with the old format, and seemed to be
better than the other two obvious options (not showing the old format at
all, as if there was no cache for it,
or showing it always). Unfortunately the whole GWC UI formats thing is
driven by property files, so cannot add
logic into it (like "enable the old format only if this config flag is
enabled").

Cheers
Andrea

-- 

Regards, Andrea Aime == GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime
@geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054
Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339
8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to