You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/02/25 09:28:04 UTC

[Solr Wiki] Update of "SolrAndHTTPCaches" by HossMan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by HossMan:
http://wiki.apache.org/solr/SolrAndHTTPCaches

------------------------------------------------------------------------------
  = Let Solr play nicely with HTTP caches =
  <!> ["Solr1.3"]
  
- Patch [https://issues.apache.org/jira/browse/SOLR-127 SOLR-127] adds a new feature to Solr to play nicely with external and client (in your browser) HTTP caches.
- 
  == Configuration ==
  === Solr ===
+ 
  Solr honors following request header elements:
   * If-None-Match
   * If-Match
@@ -21, +20 @@

  
  <!> Solr only emits cache header elements for GET and HEAD requests. The HTTP standard does not allow cache related headers for POST requests. POST requests are not cached by standard compliant shared caches!
  
- All this gets configured in [wiki:Self:SolrConfigXml#HTTPCaching solrconfig.xml].
+ Exactly how Solr  behaves can be configured in the "httpCaching" section of [wiki:Self:SolrConfigXml#HTTPCaching solrconfig.xml].
  
  === Squid Cache ===
  No special configuration is needed for [http://www.squid-cache.org/ Squid Cache]. The only thing you need to check is that the configuration parameter [http://www.squid-cache.org/Versions/v2/2.6/cfgman/cache.html cache] does not contain the \? pattern (this prevents all GET requests with parameters from beeing cached). The ''cache'' parameter tells Squid what never gets cached.