Skip to content

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jan 18, 2019

Avoids having to force reload with clearing browser cache if preview changes. Only problem may be debugging is that debugging in the browser might be harder. Could be interesting having an option not to append the parameter.

@tsteur
Copy link
Member Author

tsteur commented Jan 18, 2019

Actually, I reckon we should rather add no cache headers eg . Need to see where to put it best.

# do not cache preview container files
<Files  ~ "^container_.*_preview\.js$">
Header set Cache-Control "Cache-Control: private, no-cache, no-store"
</Files>

tsteur added a commit to matomo-org/matomo that referenced this pull request Jan 18, 2019
Not sure if this will work across apache versions? Tested on Apache 2.2

Prevents preview files from being cached in the browser and that always the newest version will be served.

refs matomo-org/tag-manager#150
@tsteur
Copy link
Member Author

tsteur commented Jan 18, 2019

Created matomo-org/matomo#13977 and matomo-org/matomo-nginx#48 instead

@tsteur tsteur closed this Jan 18, 2019
@tsteur tsteur deleted the randpreview branch January 18, 2019 22:54
diosmosis pushed a commit to matomo-org/matomo that referenced this pull request Jan 21, 2019
* Don't cache tag manager preview files

Not sure if this will work across apache versions? Tested on Apache 2.2

Prevents preview files from being cached in the browser and that always the newest version will be served.

refs matomo-org/tag-manager#150

* Update ServerFilesGenerator.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant