First call after restart returns 302

Hi all,

We are experiencing a problem with some websites right after a Lucee
restart. We created a web app that will generate a PDF and returns the
filename to the main website. This is all working great.
However whenever we restart Lucee the first call to this web app (fired
from the main website) will return a 302 instead of the PDF data. The
following calls to the web app will return the correct data.
We can solve this by browsing to the web app right after restart but thats
not a real solution.

I have setup a test project locally with only a index.cfm file and can
replicate the result (see attached images).

Any way to stop the 302 from happening?

Thanks.

Regards

We are using Lucee version 4.5.2.018 final.Op vrijdag 23 december 2016 14:20:15 UTC+1 schreef ProstepsBelgium:

Hi all,

We are experiencing a problem with some websites right after a Lucee
restart. We created a web app that will generate a PDF and returns the
filename to the main website. This is all working great.
However whenever we restart Lucee the first call to this web app (fired
from the main website) will return a 302 instead of the PDF data. The
following calls to the web app will return the correct data.
We can solve this by browsing to the web app right after restart but thats
not a real solution.

I have setup a test project locally with only a index.cfm file and can
replicate the result (see attached images).

Any way to stop the 302 from happening?

Thanks.

Regards