Have set Expiration time: Still getting "Query string present but no explicit expiration time"
Posted
by
oligofren
on Server Fault
See other posts from Server Fault
or by oligofren
Published on 2012-11-19T16:17:31Z
Indexed on
2012/11/19
17:02 UTC
Read the original article
Hit count: 742
I have one local Apache instance running with mod_cache (+ disk & mem) enabled, and it seems to cache content from my appserver fine. My app server sets Expiration headers and Last-modified. Yet, when deploying on a production server with the same modules enabled, I am getting the following error in my logs: blablabla not cached. Reason: Query string present but no explicit expiration time
Any clues on why Apache is not caching content? The only difference is the Apache version. Locally I am running 2.2.
This is from my config
CacheRoot "/var/cache/apache2/"
CacheEnable disk /
This is example output
< HTTP/1.1 200 OK
< Date: Mon, 19 Nov 2012 16:09:13 GMT
< Server: Sun GlassFish Enterprise Server v2.1.1
< X-Powered-By: Servlet/2.5
< Expires: Tue Nov 20 05:00:00 CET 2012
< Last-Modified: Mon Nov 19 17:09:13 CET 2012
< Cache-Control: no-transform
< Content-Type: application/x-javascript
< Transfer-Encoding: chunked
© Server Fault or respective owner