Hi,

I know that A::A::P::QueryStringCache is used to hash the query string
as well, to get pages with different query strings cached into different
files. This is pretty much what I want, but I also know that this leads
to a potential DoS target as one can 'bomb' the system with lots of
different query strings.

In my special case, I use two query string parameters that change the
page content, and thus I would like these parameters to be included in
the URL hash for the cache file. One parameter is a style parameter,
limited to, say, two or three different styles (using
A::A::StyleChooser::QueryString); the second is a language parameter of
the form 'lang=en' etc., limited to a handful of language codes that
will actually be used.

So it would be nice if one could use a QueryStringCache, but configure
it to accept a limited number of possible query strings to be
considered. Very vaguely, something like passing options of the form

 --hash-params=lang(de,en,fr),style(plain,default,print)

This way, DoS'ing the query string cache should not work.

My question: has something like this been done? If not, I suppose I
should adapt A::A::P::QueryStringCache to achieve this. I have not yet
looked at the sources; also, I am not sure how to best pass the config
parameters. Would it, in your eyes, make sense to implement such a
'limited' QueryStringCache?

As an aside, I might be using A::A::StyleChooser::UserAgent as well. How
does that currently integrate with caching?

Thanks and Greetings,

Jan

-- 

+-------------------------------------+
| Jan Oberländer   <[EMAIL PROTECTED]> |
|          PGP key available          |
+-------------------------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to