Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Too many reloads issued when serving locally

See original GitHub issue

When locally serving my site, the page is reloading too much. Looking at the terminal, it is because codedoc serve is issuing a reload when files in the .git directory change.

# change in C:\Code\Blogs\tyson-williams-blog\.git\FETCH_HEAD, issueing reload to client ...
# change in C:\Code\Blogs\tyson-williams-blog\.git\objects\tmp_object_git2_a17264, issueing reload to client ...

I think that directory should not be watched for changes for all CODEDOC users.

In addition to that, I have another directory that I would like to not be watched. Sometimes I will include actual code in my repository to complement a post. With Visual Studio open, I keep getting messages like this.

# change in C:\Code\Blogs\tyson-williams-blog\src\code\IdentityAsAs\.vs\IdentityAsAs\v16\.suo, issueing reload to client ...

But even when I am causing the change, I don’t need the website reloaded. When I make a change to source code file, a reload is issued. This codes exists as a reference both for me to test the claims I make in my post and for others to also test those claims and play with the code. No browser reloaded is needed.

# change in C:\Code\Blogs\tyson-williams-blog\src\code\IdentityAsAs\Project\Disambiguation.cs, issueing reload to client ...

As a side note, because my posts include the utterances script that calls the GitHub API on every page refresh, my IP is sometimes temporarily blocked by rate limiting. It isn’t a problem for me, but I would prefer to be more respectful of GitHub’s resources. Regardless of this reload issue, is there an easy why to disable the script when the site is locally hosted? I can split this off into its own issue if that would be better.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

TysonMNcommented, Jul 16, 2020

Works great. No unneeded reloads but still reloads when I edit a png file.

TysonMNcommented, Jul 16, 2020

Maybe this issue is related to

it is notable that because of this, CODEDOC issues a reload to the client for ANY change in assets folder (excluding .html files). these reloads are of course not issued if a rebuild process is already ongoing, and as per my limited testing this seems to be working fine. however in different environments / configurations this might need further tweaking.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Too Many Redirects: What This Error Means & How to Fix It
Learn what the too many redirects error mean, what causes it, and how to solve it so you can get your site back...
Read more >
How to Fix The ERR_TOO_MANY_REDIRECTS Error - Kinsta
Too many redirects occurred trying to open “” This might occur if you open a page that is redirected to open another page...
Read more >
Troubleshooting: Too Many Redirects - Liquid Web
The error "too many redirects" means that the website keeps being redirected between different addresses in a way that will never complete.
Read more >
How to Fix the Too Many Redirects Error in WordPress
How to Fix the WordPress ERR_TOO_MANY_REDIRECTS Issue. Check for Local Browser Issues; Forced Refresh the Page in Your Browser; Clear Browser Data; Clear...
Read more >
How to Solve the "Too Many Redirects" Error in WordPress
Locate your website and click on the Trashcan icon to delete it. After that, just reload the page to see if the error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found