Skip to content

Can't use cacheDuration #5387

Answered by tephenavies
MoRadwan74 asked this question in Q&A
Mar 31, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

HI @MoRadwan74. The property "cacheDuration" only applies to items that are proxied through terriajs-server proxy/ endpoint. I think something else must be adding cache headers. Check the network requests that terriajs makes (using network tab of browser debugger - you can filter to "localhost/geoserver/ows" to make it easier to find the relevant requests) and take a look at the cache headers.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching & https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control to better understand the effect of specific caching headers.

If the caching is not in headers it could be geoserver or maybe a reverse proxy in front of geoserver t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tephenavies
Comment options

@MoRadwan74
Comment options

@MoRadwan74
Comment options

Answer selected by tephenavies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5386 on April 01, 2021 02:47.