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

Bacon should send sane caching headers #3

Open
igalic opened this issue Jun 3, 2013 · 0 comments
Open

Bacon should send sane caching headers #3

igalic opened this issue Jun 3, 2013 · 0 comments

Comments

@igalic
Copy link
Contributor

igalic commented Jun 3, 2013

Right now, bacon starts a PHP session at the, which causes it to send response headers such as these:

HTTP/1.1 200 OK
Host: localhost:8080
Connection: close
X-Powered-By: PHP/5.4.9-4ubuntu2
Set-Cookie: 5fff0c76cab5500d8ff289d2d37de289d3214d0f=ah0dds0f6003u7cgt3jel18qpjo6ic9a; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: 5fff0c76cab5500d8ff289d2d37de289d3214d0f=44nt3jt9dmp4obe4b7b1laefjhgml9mk; path=/
Content-type: text/html

While this is a good default for a highly dynamic site with heavy user-interaction, it's not a very good default for… everything else.

The reason for these headers is PHP's defaults for session_cache_limiter and session_cache_expire.
Perhaps we should make those configurable (on a per-route basis?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant