We have activated far future caching on selected resources on our site, running 
Magnolia 4.5.17. We have encountered an issue where one of the javascripts does 
not get its Last-modified header set correctly.

Also for the resources that do get Last-modified set, the date does not reflect 
the last:modified date in the jcr. This is perhaps not an issue, but I am 
curious what timestamp Magnolia uses to set Last-modified if it is not the jcr 
date:
 

HTTP:
http://www.oursite.com/resources/libs/modernizr.min.2015-07-14-15-12-00-000.cache.js
Last-Modified: Fri, 28 Aug 2015 11:25:55 GMT
JCR:
resources:/libs/modernizr.min
<sv:property sv:name="mgnl:lastmodified" sv:type="Date">
<sv:value>2015-07-14T15:12:00.000+02:00</sv:value>

We would like some pointers to where Magnolia sets the Last-modified header and 
any tips regarding what could be the cause of the problem is welcome.

Below are example responses that we receive from Magnolia. In the first example 
we get a 200 status and no Last-modified. In the second example we get 
Last-modified and a 304 status.

http://www.oursite.com/resources/framework.2015-08-25-08-55-51-869.cache.js
First request:
HTTP/1.1 200 OK
Date: Fri, 28 Aug 2015 11:47:53 GMT
Server: Apache
X-Magnolia-Registration: Registered
Expires: Sat, 27 Aug 2016 11:25:58 GMT
Cache-Control: max-age=31536000, public
Pragma: 
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 270698
Age: 1314
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Content-Type: application/x-javascript;charset=UTF-8

Second request:
HTTP/1.1 200 OK
Date: Fri, 28 Aug 2015 11:48:40 GMT
Server: Apache
X-Magnolia-Registration: Registered
Expires: Sat, 27 Aug 2016 11:25:58 GMT
Cache-Control: max-age=31536000, public
Pragma: 
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 270698
Age: 1361
Keep-Alive: timeout=3, max=99
Connection: Keep-Alive
Content-Type: application/x-javascript;charset=UTF-8

http://www.oursite.com/resources/libs/modernizr.min.2015-07-14-15-12-00-000.cache.js
First request:
HTTP/1.1 200 OK
Date: Fri, 28 Aug 2015 11:49:44 GMT
Server: Apache
Last-Modified: Fri, 28 Aug 2015 11:25:55 GMT
X-Magnolia-Registration: Registered
Vary: Accept-Encoding
Expires: Sat, 27 Aug 2016 11:25:58 GMT
Content-Encoding: gzip
Cache-Control: max-age=31536000, public
Pragma: 
Content-Length: 4192
Age: 1425
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Content-Type: application/x-javascript;charset=UTF-8

Second request:
HTTP/1.1 304 Not Modified
Date: Fri, 28 Aug 2015 11:48:40 GMT
Server: Apache
Connection: Keep-Alive
Keep-Alive: timeout=3, max=100
Expires: Sat, 27 Aug 2016 11:25:58 GMT
Cache-Control: max-age=31536000, public
Vary: Accept-Encoding

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=af9feb93-e9b4-48a8-87ba-470b4dc16e8e


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to