Skip to content

Commit 9fed2f6

Browse files
author
Mark Sitko
committed
Add global .htaccess to prevent cache for development
1 parent bb7841b commit 9fed2f6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.htaccess

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FileETag None
2+
<ifModule mod_headers.c>
3+
Header unset ETag
4+
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
5+
Header set Pragma "no-cache"
6+
Header set Expires "Mon, 1 Jan 2010 01:00:00 GMT"
7+
</ifModule>

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,6 @@ RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
8282
unique_id
8383
RUN docker-php-ext-enable imagick
8484
COPY php.ini /usr/local/etc/php/conf.d/
85+
# prevent caching for development
86+
COPY .htaccess /var/www/html/
8587
COPY info.php /var/www/html/

0 commit comments

Comments
 (0)