\documentclass[a4paper, 11pt]{article}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{a4wide}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{color}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{ulem}
\usepackage{listings}
\usepackage{float}
\usepackage[rflt]{floatflt}
\usepackage{tabularx}
\setlength{\parindent}{0pt}
\title{.htaccess Browsercache aktivieren}
\usepackage[
pdftitle={.htaccess Browsercache aktivieren}
pdfsubject={Browserseitiges Caching über den HTTP-Header in der .htaccess für den Apache Webserver aktivieren}
pdfauthor={Udo Schmal}
pdfkeywords={Administration}
]{hyperref}
\definecolor{darkblue}{rgb}{0,0,.5}
\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue, menucolor=darkblue, pagecolor=darkblue, urlcolor=darkblue}
\begin{document}.htaccess Browsercache aktivieren
\singlespacing
{\LARGE \textbf{\label{sec:title}Browsercache aktivieren}}

Browserseitiges Caching über den HTTP-Header in der .htaccess für den Apache Webserver aktivieren
\begin{lstlisting}[breaklines]\#Set Expires Headers
\&lt;IfModule mod\_expires.c\&gt;
  ExpiresActive on
  ExpiresDefault \&quot;access plus 1 month\&quot;
  \# CSS
  ExpiresByType text/css \&quot;access plus 1 month\&quot;
  \# Data interchange
  ExpiresByType application/json \&quot;access plus 0 seconds\&quot;
  ExpiresByType application/xml \&quot;access plus 0 seconds\&quot;
  ExpiresByType text/xml \&quot;access plus 0 seconds\&quot;
  \# Favicon (cannot be renamed!)
  ExpiresByType image/x-icon \&quot;access plus 1 month\&quot;
  \# HTML components (HTCs)
  ExpiresByType text/x-component \&quot;access plus 1 month\&quot;
  \# HTML
  ExpiresByType text/html \&quot;access plus 1 hour\&quot;
  \# JavaScript
  ExpiresByType application/javascript \&quot;access plus 1 month\&quot;
  \# Manifest files
  ExpiresByType application/x-web-app-manifest+json \&quot;access plus 0 seconds\&quot;
  ExpiresByType text/cache-manifest \&quot;access plus 0 seconds\&quot;
  \# Media
  ExpiresByType audio/ogg \&quot;access plus 1 month\&quot;
  ExpiresByType image/gif \&quot;access plus 1 month\&quot;
  ExpiresByType image/jpeg \&quot;access plus 1 month\&quot;
  ExpiresByType image/png \&quot;access plus 1 month\&quot;
  ExpiresByType video/mp4 \&quot;access plus 1 month\&quot;
  ExpiresByType video/ogg \&quot;access plus 1 month\&quot;
  ExpiresByType video/webm \&quot;access plus 1 month\&quot;
  \# Web feeds
  ExpiresByType application/atom+xml \&quot;access plus 1 hour\&quot;
  ExpiresByType application/rss+xml \&quot;access plus 1 hour\&quot;
  \# Web fonts
  ExpiresByType application/font-woff \&quot;access plus 1 month\&quot;
  ExpiresByType application/font-woff2 \&quot;access plus 1 month\&quot;
  ExpiresByType font/woff2 \&quot;access plus 1 month\&quot;
  ExpiresByType application/vnd.ms-fontobject \&quot;access plus 1 month\&quot;
  ExpiresByType application/x-font-ttf \&quot;access plus 1 month\&quot;
  ExpiresByType font/opentype \&quot;access plus 1 month\&quot;
  ExpiresByType image/svg+xml \&quot;access plus 1 month\&quot;
  \# other files
  ExpiresByType application/pdf \&quot;access plus 1 hour\&quot;
\&lt;/IfModule\&gt;\end{lstlisting}
\end{document}