Hi,
Group Docs Viewer for Java v17.2.; Windows 7; Java 1.7.0_79; apache-tomcat-7.0.56; Eclipse + Gradle
My little program will directly output PPTX html to browser as below codes:
List<PageHtml> list = handler.getPages(filePath, o);
for(PageHtml page : list)
{
response.getWriter().write(page.getHtmlContent());
}
When go to browser first time, the web page result looks OK like this: Normal_web_page_result.png (111.3 KB)
But when I pressed F5 or CTRL+F5 to refresh web page, the web page will show duplicated PPTX pages, like below:
Duplicated_pages_Chrome.png (72.8 KB)
Duplicated_pages_IE.png (94.5 KB)
And it won’t be fixed after keep refreshing web page.
I directly opened the html file in cache by browser, and the generated html file does show duplicated pages.
Generated_html_in_cache.zip (232.6 KB)
That’s weird. Why two same pages are generated?
I attached my Eclipse project for you to reproduce problem:
DocumentViewer.zip (70.2 KB)
apachecon-scaling.zip (2.5 MB)
You need to modify some paths in code.
Thanks for any comments.