Posts Tagged http
Caching in Javascript with Cachejs
Posted by Howard Yeend in javascript, web on May 18, 2010
Here’s a useful open-source (MIT license) javascript caching object I developed for my job at GG.com, the best horse racing site on the net.
(I am contractually obliged to say that every time I mention the URL. Not really though).
Like most web applications these days, we make fairly extensive use of Ajax, sending and receiving JSON data across the net on hover events and so on.
However, we’ve found that all those HTTP requests can slow down the user experience, and causes unnecessary extra load on our application servers, so we decided to employ a client-side Least Recently Used (LRU) caching object, so that we can reduce the number of HTTP requests, and increase the response speed for cachable queries. It employs lazy garbage collection, just like memcached does. In fact we see this as a kind of “memcache for javascript”, if that makes any sense at all.
- I’d love to see what you do with it ;0)
It depends upon no external libraries. Here’s a simple usage example:
PHP HTTP Interface
Posted by Howard Yeend in hacking, networking, PHP on March 13, 2009
This code give you a HTML front end for HTTP using PHP. I quite often find myself wanting to fire up putty to send some custom HTTP headers, so I wrote this simple PHP tool to provide a “front end” for HTTP. It allows quick and easy customisation of HTTP headers, sends them to a web server and shows you in plain text the HTTP response headers and body. It’s quite nifty and rather useful for debugging / hacking / etc. Read the rest of this entry »
HTTP Headers
Posted by Howard Yeend in networking, Other Code on February 1, 2009
An article about sending HTTP headers to a remote system, and knowing fully what they mean. Also covers sessions, hosting, and various interesting bits and bobs relating to web application security, hacking and the web in general. Read the rest of this entry »
win32 C / C++ scripts
Posted by Howard Yeend in Other Code on January 5, 2005
Some of the better scripts I’ve written. They’re all command line utilities. The downloads come with code (compiles OK with ) and windows executables.
Everything is released under the GPL as usual.
I’m very much a beginner in C so the coding probably isn’t that great. I hope someone will find something here useful. Most of the code is my own work, and where I’ve used other people’s code I’ve commented it as such. Read the rest of this entry »
Recent Comments