1
vote
0answers
61 views

.htaccess recommendations to prepare for new launch of website - caching

Currently my website has cache controls set for javascript libraries and images, and caches them for one week. I'd like to know what best practices I should following leading up to my websites ...
2
votes
4answers
751 views

how to cache my website?

I have few questions about caching a website, since I haven't tried caching a site before. First is how to cache a site so it will have a faster loading when clients browse the site. For example I ...
3
votes
1answer
460 views

Image caching using HTTP_IF_MODIFIED_SINCE

I found that adding RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}] RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}] To the bottom of my htaccess file (below all ...
0
votes
1answer
147 views

.htaccess to match paramaterized URLS

I am trying to set a cache control header when a browser requsets the following url: www.example.com/php/getData.php?exampleField=exampleValue As even though getData.php is a dynamic page, when the ...
0
votes
3answers
829 views

Website with optimal cache control

My goal I would like to let browsers cache my whole website, but only download the new information when I have changed one or more files. My situation After some research I have found a way to do ...
1
vote
1answer
2k views

What's the correct Apache syntax for proper expiration cache control?

Some questions on the absolute, optimal usage of caching of dynamic and static cache. Currently, my htaccess is setup as below, and I have the feeling im not really using it the correct way... Any of ...
2
votes
1answer
976 views

Does is matter in what order rules are placed in htaccess?

I hope this is a simple YES or NO answer (please specify why) Q1: Does is matter in what order the rules are placed in htaccess? Since they are completely separated items: for example Q2: If yes, am ...
3
votes
2answers
234 views

Is there an Elegant solution to rewrite long image?query-urls into cachable_nice_urls, using only apache htaccess?

this is a pain in the ass-problem! Whicever genius solves this riddle will receive paypal donation to eat diner for two. Now lets get started. Given: most proxies, do not cache resources with a "?" in ...
2
votes
2answers
1k views

Optimized .htaccess for caching?

I'm trying to make Google PageSpeed happy, but my .htaccess skills are limited. I'm particularly struggling with browser and proxy caching. Does anyone have a template I can use? Here's what I have ...
3
votes
1answer
2k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch ...
0
votes
1answer
508 views

Precedence of .htaccess for cache control

I have a .htaccess in my document root, with the following: ExpiresActive On ExpiresDefault A0 <FilesMatch "\\.(gif|jpe?g|png)$"> ExpiresDefault A86400 ...
1
vote
2answers
241 views

How Do I Cache Just the Homepage with Apache .htaccess?

This config is close... <FilesMatch "\.(php)$"> Header set Cache-Control "max-age=7200, must-revalidate" </FilesMatch> ...but it does all php pages, not just the home page like I want. ...
7
votes
4answers
14k views

How to solve “ExpiresActive not allowed here” error message in .htaccess file?

I am trying to add Expires headers to the HTTP responses of the site I am working on. The only way for me to control the Apache 1.3 server is by editing my .htaccess file. I tried adding code such as ...