Forum Moderators: phranque

Message Too Old, No Replies

I keep getting a 'bad expires code' error

With Tomcat on Apache

         

squashua2

7:53 pm on Nov 16, 2004 (gmt 0)

10+ Year Member


I keep seeing this sort of thing on our server, and I can't find a good explanation of how to stop it or fix it. I found one link about mod_expires.c, but that didn't really tell me why I'm getting this error.

I recognize this site's restrictions on posting detailed url information, so I have replaced sensitive info with somewhat relevant BS:

[Tue Nov 16 14:25:22 2004] [error] [client 83.170.12.18] internal error: bad expires code: /usr/local/jakarta-tomcat-4.1.30/webapps/mywebapp/js/myjsfile.js, referer: http://www.NOTAREALSITE.com/mywebapp/subdir/subdir/strutaction.do?param=value&param2=value2

[Tue Nov 16 14:25:24 2004] [error] [client 64.241.170.177] internal error: bad expires code: /usr/local/jakarta-tomcat-4.1.30/webapps/subdir/subdir/subdir/aStrutsAction.do, referer: http://www.NOTAREALSITE.com/subdir/aDifferentStrutsAction.do?&param1=value1&param2=value2&param3=value3

[Tue Nov 16 14:25:25 2004] [error] [client 212.253.46.69] internal error: bad expires code: /usr/local/jakarta-tomcat-4.1.30/webapps/subdir/aStrutsAction.do, referer: http://www.NOTAREALSITE.com/subdir/subdir/subdir/aDifferentStrutsAction.do?param1=value1

[Tue Nov 16 14:25:25 2004] [error] [client 212.253.46.69] internal error: bad expires code: /usr/local/jakarta-tomcat-4.1.30/webapps/subdir/subdir/subdir/siteRouter.do, referer: http://www.NOTAREALSITE.com/subdir/subdir/subdir/siteRouter.do?param1=value1&param2=value2

[Tue Nov 16 14:25:25 2004] [error] [client 64.241.170.177] internal error: bad expires code: /usr/local/jakarta-tomcat-4.1.30/webapps/subdir/aStrutsAction.do, referer: http://www.NOTAREALSITE.com/subdir/subdir/subdir/anotherstrutsAction.do?param1=value1&param2=value2

[Tue Nov 16 14:25:25 2004] [error] [client 64.241.170.177] internal error: bad expires code: /usr/local/jakarta-tomcat-4.1.30/webapps/subdir/subdir/subdir/aStrutsAction.do, referer: http://www.NOTAREALSITE.com/subdir/subdir/subdir/theSameStrutsAction.do?param1=value1&param2=value2

squashua2

7:54 pm on Nov 16, 2004 (gmt 0)

10+ Year Member



Or at least, what does it mean?

jdMorgan

7:27 pm on Nov 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not at all familiar with your setup, but "Expires code" may refer to the "Expires" header included in HTTP responses to inform the client as to when the content should be marked as stale or expired. A client user-agent may opt to serve requests for this content from its local cache if the request is made before the time specified by the Expires header. If the Expires time has passed, the user-agent will re-request the content from the original server.

So this error message could be saying that the Expires header of the requested resource is improperly formatted.

Jim