Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Caching in Apache Web Server
(1 viewing) (1) Guest
All your queries regarding
Apache Installation,
Creating Virtual Domains Under Apache
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

Caching in Apache Web Server

Caching in Apache Web Server 1 year, 1 month ago #580

  • avan12
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Karma: 0
Hi all,

I just test my website for Page Speed using Yahoo extension 'YSlow'.

I was shocked when the rating for my website was 'D' in YSlow.

Yslow, indicated that I need to add an expired header to my JavaScript file.

Quote:
no expires) ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
UnQuote:

I search on on apache.org where they explain quite some things on mod_expires but for some reason my brains are not working today.

I tried the following in a .htaccess file

Code:

ExpiresActive On
ExpiresByType text/js A99592000

But when i re-tested my website using Yslow I still keeps showing me the same 'D' grade.

Sorry if this sounds stupid, but I have no idea where to start.

By the way i am running on wamp and I enabled: expires_module and header_module.

Can any one help me to how to write an expired header for external files.

Thanks in advance.

Re: Caching in Apache Web Server 1 year ago #593

  • sandhya
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
It's not your server. You can't do anything about it.

If you're thinking about your bandwidth then don't. It isn't your bandwidth.
If you're thinking about performance, and if you think your server can out perform googleapis(dot)com, get your website its own copy of the important files and make sure those are cached.
  • Page:
  • 1
Time to create page: 1.26 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download