Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Because of using slow connection these days, I would like to force WordPress's Admin section to be cached in browser (FF,IE) so that it it takes less time to load admin pages (because in fact, most of items never change.). Is there any way to do that?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

your problem is not with the admin pages themself, they are simply not big enough to be hugely impacted by slow connection, but with JS and CSS files. You can set an expiry date for them which will signal to the browser it may cache them until that time.

To cache them for a week in your .htaccess file add (idea taken from askapache)

# 1 WEEK
<FilesMatch "\.(jpg|jpeg|png|gif|swf|js|css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>

The max age parameter specifies the time in seconds after which the url have to be fetched again.

If this is not good enough, maybe because your browser cache is full with other files which you access more frequently, then you should install a caching proxy on your PC, configure it to always cache JS and CSS from your site, and configure the browser to use the proxy.

share|improve this answer
add comment

Your Answer

 
discard

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.