---
title: "Static files served without recording hit to access_log"
date: "2018-10-23"
category: "web-content"
slug: "static-files-served-without-recording-hit-to-access_log"
---

## Overview

Static files (e.g. `index.html`) may be served without a corresponding entry in the [[accessing-page-views-and-error-messages]].

## Cause

When mod\_pagespeed is enabled, it intercepts requests higher in Apache's [processing pipeline](http://www.apachetutor.org/dev/request#Request%20Processing%20Phases) -- before [mod\_log\_config](http://httpd.apache.org/docs/current/mod/mod_log_config.html) runs. If a static file exists in the PageSpeed optimized cache, it is served directly without being logged. This does not affect files with a `Pragma: no-cache` header, such as PHP scripts.

## Solution

Disable [[disabling-pagespeed]] to restore access log entries for static files. If you need visitor statistics while keeping PageSpeed enabled, consider using [[linking-google-analytics]] instead.
