Axis -
Joined: 29 Sep 2003 Posts: 336
|
Posted: Fri Dec 20, 2013 5:42 pm Post subject: |
|
|
Hello sigih--
I have done just what you are wanting to do. First stop, go to Pingdom at:
http://tools.pingdom.com/fpt/
They will show you just which files need cache control (usually static files like style sheets, images, and javascript (.js), etc.) Open your Abyss Control Panel and host (if X2).
Click "General" button and then click "advanced parameters."
Under "File Expiration Times"
Virtual Path= /
Mime Type= All (*/*)
Time Base= Request Time
Time Delta= 7 day(s)
If you are using compression (and it is usually a very good idea especially for text/* and application/* ) you should also move up the Advanced Parameters page to add a Custom Header as below:
Custom HTTP Headers
Virtual Path= /
HTTP Header Name= Vary
HTTP Header Value= Accept-Encoding
Save all that and re-test at Pingdom.
One one of my websites, using Firefox's "Firebug" the response headers then look like this for a javascript file:
HTTP/1.1 304 Not Modified
Vary: Accept-Encoding
Transfer-Encoding: Chunked
Connection: Keep-Alive
Keep-Alive: timeout=500000, max=50
Date: Fri, 20 Dec 2013 16:45:10 GMT
Server: Abyss/2.9-X2-Win32 AbyssLib/2.9.0.0
Response Headers From Cache
Cache-Control max-age=604800
Content-Encoding gzip
Content-Type application/x-javascript
Date Fri, 20 Dec 2013 16:45:10 GMT
Expire Wed, 18 Dec 2013 15:48:28 GMT
Last-Modified Fri, 28 Jun 2013 16:58:40 GMT
Server Abyss/2.9-X2-Win32 AbyssLib/2.9.0.0
Vary Accept-Encoding
Hope that helps.
Regards,
Axis |
|