I have a web app with a giant Google Map in it. As users pan and zoom around on the map, points are dynamically loaded through AJAX call which include the viewport bounds (NE and SW corner coordinates) and some other assorted parameters.
How do I cache these request for points? The problem is that the parameters are highly variable and (worst) not discrete i.e. floats with a lots of decimal places. I'm using ASP.NET-MVC/C#/LINQ2SQL/SQL-Server but the problem is not tied to that platform.
This is the signature of the the relevant method:
[AcceptVerbs(HttpVerbs.Post)]
public JsonResult Data(string date, string categories,
string ne_lat, string ne_lng,
string sw_lat, string sw_lng)