Skip to content

fixed robots.txt not being counted as static file #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

mackuba
Copy link
Contributor

@mackuba mackuba commented Jan 26, 2019

The robots.txt file is listed in the STATIC_EXTENSIONS list, however the entries from this list are only compared against hit.extension - which in case of robots.txt will be txt. So the result is that this file is not excluded from log entries and appears on the Downloads report.

This PR adds a second list of static files with full filenames (with just this one file at the moment) that's instead compared with the whole last path element of the URL.

@mattab mattab added this to the Current sprint milestone Mar 26, 2019
@sgiehl
Copy link
Member

sgiehl commented Oct 21, 2019

Works as expected. I'll add a test for that after merging

@sgiehl sgiehl merged commit c95b726 into matomo-org:master Oct 21, 2019
@innocraft-automation innocraft-automation removed this from the Current sprint milestone Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants