Skip to content
Snippets Groups Projects
Commit d03b3145 authored by Uku Taht's avatar Uku Taht
Browse files

Removes cache-control header from tracker file

parent 4ff25f68
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,6 @@ defmodule PlausibleWeb.Tracker do
@templates files_available
@aliases aliases_available
# 1 hour
@max_age 3600
def init(_) do
all_files =
Enum.reduce(@templates, %{}, fn template_filename, all_files ->
......@@ -64,7 +61,6 @@ defmodule PlausibleWeb.Tracker do
location = Application.app_dir(:plausible, "priv/tracker/js/" <> found)
conn
|> put_resp_header("cache-control", "max-age=#{@max_age},public")
|> put_resp_header("content-type", "application/javascript")
|> put_resp_header("cross-origin-resource-policy", "cross-origin")
|> send_file(200, location)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment