Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm kind of having some troubles with the loading of my website. It sometimes loads fast, then when you refresh it, most of the time, it will just keep trying to load images. It will keep doing that for a minute or so, and none of the JavaScript will execute.

I have followed most of the tips given by Yahoo, except caching, which I couldn't get working properly.

Does anyone know how to do proper caching of image and JavaScript files using htaccess? Most of the code I found online won't work.

share|improve this question

migrated from stackoverflow.com Mar 19 '12 at 2:17

This question came from our site for professional and enthusiast programmers.

most of the code should work... have you checked the error log of apache? – Karoly Horvath Feb 28 '12 at 23:52
No.. where is it located? – Michael Schinis Feb 28 '12 at 23:53
google.com/search?q=apache+error+log+location – Karoly Horvath Feb 28 '12 at 23:55
How much effort have you exerted with caching? Although this link gives you the full tutorial: askapache.com/htaccess/…. These links may also help you: tutorialpedia.org/tutorials/… & thecreatology.com/… – Ann B. Feb 29 '12 at 0:33
no, there is not. and use @ user for answering to comments, so user will notify. – undone Mar 3 '12 at 5:16
up vote 0 down vote accepted

The link given by Ann B, has solved all of my problems.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.