In Special Relativity, a photon of frequency f is considered as a particle of mass m=h f/c2 with zero proper mass. It is experimentally verified that the photon carries momentum and exerts radiation pressure on the targets it impacts.
On the other hand, in General Relativity, it is proposed that the gravitational interaction between massive objects is due to the fact that gravitational field curves space-time. It has been verified that a massive body alters the trajectory and velocity of a beam of light that interacts with its gravitational field (Shapiro effect and gravitational lens effect). Within the frame of General Relativity, these effects are explained by proposing that photons follow geodesic trajectories within curved spaces. Obviously in this framework the mass of the photons can be considered negligible. But, in General Relativity, is the photon a massless particle?