CGI question

M

Matt Taylor

Hi,

Rather new to ruby. Making my first rails app.

The application is a simple gallery image viewer.

I'm wanting of course to have the browser cache as much as possible.

I'm looking at using etags and If-Modified-Since so I can return a 304
instead of pushing the entire image back to the browser.

putting the etag in the headers for the response is no problem

@response.headers["ETag"][email protected]

The thing I can't seem to figure out though is how to tell if the
browser is sending the 'If-Modified-Since' directive.

The stock CGI class seems to have no notion of such a thing and I'm
going nuts trying to figure out how to get access to the raw CGI
environment (ENV seems to be blank, perhaps a security feature?)

Thanks in advance for any help.

Matt

P.S. I tried to join the rails mailing list but so far it doesn't seem
to be working. Is that list still valid? -M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Show text from text file in cgi script 7
CGI question 0
CGI and Methods?? 5
cgi / fcgi? 2
Newb CGI Question 1
CGI->WEBrick? 6
Quick CGI question (specific to the CGI package) 19
Help with Apache cgi 1

Members online

No members online now.

Forum statistics

Threads
474,171
Messages
2,570,935
Members
47,472
Latest member
KarissaBor

Latest Threads

Top