http://www.perlmonks.org?node_id=657917


in reply to OT: Apache/perl question

Hmmmm....I have the sneaking feeling that this might lead to caching issues. Squid for example looks for a ? in the URL as a hint to know if something can be cached or not.

/\/\averick

Replies are listed 'Best First'.
Query strings and caching
by dorward (Curate) on Dec 20, 2007 at 01:24 UTC

    If it does, then its broken. The presence of a query string shouldn't have any influence on caching, it means nothing other than "This URI could have been generated with a form and user provided data".

    http://search.yahoo.com/search?p=perl has a query string, but the significant content of that page is likely to change less frequently then that of http://perlmonks.com/ (which doesn't).

    If a tool wants to do sane caching, then it should pay attention to HTTP's collection of cache control headers.