From 19244901b089f80986917f0b6bc4ecf507d06903 Mon Sep 17 00:00:00 2001 From: Grant Ingersoll Date: Wed, 20 Oct 2010 18:40:56 +0000 Subject: [PATCH] SOLR-2181: Add HTTP Caching status to admin ui git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1025669 13f79535-47bb-0310-9956-ffa450edef68 --- solr/src/webapp/web/admin/_info.jsp | 2 ++ solr/src/webapp/web/admin/header.jsp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/solr/src/webapp/web/admin/_info.jsp b/solr/src/webapp/web/admin/_info.jsp index 05a9f4ce35a..260e160a2aa 100644 --- a/solr/src/webapp/web/admin/_info.jsp +++ b/solr/src/webapp/web/admin/_info.jsp @@ -115,4 +115,6 @@ String cwd=System.getProperty("user.dir"); String solrHome= solrConfig.getInstanceDir(); + + boolean cachingEnabled = !solrConfig.getHttpCachingConfig().isNever304(); %> diff --git a/solr/src/webapp/web/admin/header.jsp b/solr/src/webapp/web/admin/header.jsp index 7ea1dbcc47b..9b40b1efc7a 100644 --- a/solr/src/webapp/web/admin/header.jsp +++ b/solr/src/webapp/web/admin/header.jsp @@ -39,3 +39,6 @@ var host_name="<%= hostname %>" <%= hostname %>:<%= port %>
cwd=<%= cwd %> SolrHome=<%= solrHome %> +
+<%String cachingStatus = " HTTP caching is "; %> +<%= cachingEnabled ? cachingStatus + " ON": cachingStatus + " OFF" %>