Comment #8 on issue 989 by
jmara...@google.com: IPRO with LoadFromFile on a
I think there are three cases here, all in the context of LoadFromFile:
1. resource is not yet optimized
2. resource cannot be optimized (because origin resource is already optimal)
3. resource is optimized
What you are describing is case #1, and for that I think it makes sense to
send out headers that will prevent it from being cached in a proxy, at
least for a long time. However I think this bug is really about case #2,
and it turns out we also have a problem with case #3.
Case #2 can be solved, I think, by just declining to handle unoptimizable
cases in the IPRO flow.
However, I think case #3 is also a problem. We are using our implicit
cache TTL rather than the origin TTL when we grab the file with
LoadFromFile. We never learn the origin TTL because we don't let Apache
handle that request normally. I think to solve this we need a new config
file option to set the TTL used for IPRO-optimized resources read directly
from the file system.
Back to case #1 (and Otto's point) -- currently we will (with LoadFromFile)
issue the same public 300 second cache lifetime for that too, which I think
is yet another code path :)