Skip to content

Commit 11adea6

Browse files
committed
add HTTP response header hint to cache for 12 hours
1 parent 2f30ecb commit 11adea6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

xslt/solr-xml-to-json.xsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@
274274
</xsl:template>
275275

276276
<xsl:template name="response-headers">
277+
<!-- hint to cache for up to 24 hours -->
278+
<c:header name="Cache-Control" value="max-age=43200"/><!-- cache for 12 hours -->
277279
<xsl:if test="$is-search-request">
278280
<!-- pagination headers are only useful for search requests because they produce multiple results -->
279281
<c:header name="Result-Count" value="{$result-count}"/>

0 commit comments

Comments
 (0)