Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search for gziped cache if uncompressed cache is not found #14

Open
weiribao opened this issue Nov 11, 2012 · 1 comment
Open

search for gziped cache if uncompressed cache is not found #14

weiribao opened this issue Nov 11, 2012 · 1 comment

Comments

@weiribao
Copy link
Collaborator

For return=data, if the file is not found on disk, try filename.{out,data,datax}.gz. If the request had accept-encoding: gzip, just stream the gz file.

@rweigel
Copy link
Owner

rweigel commented Dec 1, 2012

Options

(1) Redirect request to static file visible through Apache (or use Node.js to redirect)
(2) Modify getcachedata in util.js so it reads and uncompresses content. (May be a problem if user requested compressed response.) Or have getcachedata set a flag that tells app if what it is being passed is gzipped. Or have getcachedata respond with pointer to file.

@rweigel rweigel reopened this Jun 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants