make TPAC handle HEAD requests better

Bug #1386905 reported by Galen Charlton
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Wishlist
Unassigned

Bug Description

At least one link-checker has been observed sending a bunch of HTTP HEAD requests to an Evergreen catalog at a high rate. Many of the links being checked run catalog searches, and it is possible for the crawling to overwhelm available storage and search backends.

To avoid this, one possibility would be for TPac's mod_perl handlers to check for HEAD requests and refuse to run catalog searches. Possible behaviors include:

1. unconditionally return HTTP 200
2. process /eg/opac/record requests normally except for refusing to run a catalog search
3. process /eg/opac/record HEAD requests request only to the point of determining whether the bib is visible to the OPAC, but dispense with template processing or copy retrieval

Evergreen master

Tags: opac
tags: added: opac
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.