Use proper HTTP methods for XHR calls
-
Calls that potentially make changes such as [c]rr_gcode[/c] really should use POST and not GET. This might sound insignificant, but it signals to the browser that it shouldn't spontaneously fetch these URLs. For example, when I type things in the address bar, my browser often pre-fetches the top match before I even press return.
Recently, I entered a rr_gcode URL in my address bar to try something out. Ever since then, when I type in the address bar and the top hit happens to be that URL, my printer starts moving!