This study reported the inclusive differential production cross-section of photons in six pseudorapidity regions: 6.1 < I^⋅ < 6.5, 6.5 < I^⋅ < 7.0, 7.0 < I^⋅ <7.5, 7.5 < I^⋅ <8.0, 8.0 < I^⋅ < 8.5, and I^⋅ > 8.5, measured through the RHICf experiment with pp collisions at s = 510 GeV conducted in June 2017. In addition, the cross-sections in the three regions of the xF-pT phase space coverage that are same as those of the LHCf results at s = 7 and 13 TeV were obtained and compared. Considering the uncertainties, the results were observed to be consistent with both the Feynman scaling law and the model predictions of EPOS-LHC, QGSJET-II-04, Sibyll 2.3d, and DPMjet-III 2019.1, although certain models exhibited weak collision energy dependencies.