2019-01-29 02:00:55 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
# Redirect 404'd thumbnail requests to a script that will generate them.
|
|
|
|
|
|
|
|
RewriteEngine on
|
|
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteRule ^(.*)/?$ handle_404.php?file=$1 [QSA,L]
|
2019-02-08 20:53:49 -07:00
|
|
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
<filesMatch ".jpg$">
|
|
|
|
Header set Cache-Control "max-age=604800, public"
|
|
|
|
</filesMatch>
|
|
|
|
</IfModule>
|