Title: Bad end offset error solution
Last modified: June 8, 2026

---

# Bad end offset error solution

 *  Resolved [hackrepair](https://wordpress.org/support/users/hackrepair/)
 * (@hackrepair)
 * [3 weeks, 6 days ago](https://wordpress.org/support/topic/bad-end-offset-error-solution/)
 * Had to troubleshoot this error for a client, “Bad end offset:”
   The solution to
   get around the LiteSpeed issue was to add this to .htaccess:# Force LiteSpeed
   to respect byte-range chunked loading for PDFs<IfModule mod_headers.c><FilesMatch“.(
   pdf)$”>Header set Accept-Ranges bytesHeader set Cache-Control “no-cache, no-store,
   must-revalidate”Header set Pragma “no-cache”Header set Expires 0</FilesMatch>
   </IfModule>

Viewing 1 replies (of 1 total)

 *  Plugin Author [Deepak Ghimire](https://wordpress.org/support/users/deip/)
 * (@deip)
 * [2 weeks, 6 days ago](https://wordpress.org/support/topic/bad-end-offset-error-solution/#post-18938143)
 * Hi,
   Thank your for your time and effort on the comment. We have noticed this 
   issue with litespeed server and plugin and their approach on handling partial-
   content. We too have a documentation on PDF not Loading article related to this
   issue : [https://wordpress.dearflip.com/docs/pdf-not-loading/#1-toc-title](https://wordpress.dearflip.com/docs/pdf-not-loading/#1-toc-title)
 * There were previous cases and found that solution 6 months ago
   [https://wordpress.org/support/topic/error-cannot-access-file-litespped-browser-cache/#post-17740324](https://wordpress.org/support/topic/error-cannot-access-file-litespped-browser-cache/#post-17740324)
   [https://wordpress.org/support/topic/error-cannot-access-file-2/#post-17840736](https://wordpress.org/support/topic/error-cannot-access-file-2/#post-17840736)
 * As mentioned in the article this issue is seen in nginx server and litespeed 
   implementation. Apache handles partial-content beautifully.
 * We hope there will be some fix from Chrome browser or nginx/litespeed team.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbad-end-offset-error-solution%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/3d-flipbook-dflip-lite/assets/icon-128x128.gif?rev=3175518)
 * [DearFlip - PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer](https://wordpress.org/plugins/3d-flipbook-dflip-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/3d-flipbook-dflip-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/3d-flipbook-dflip-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/3d-flipbook-dflip-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/3d-flipbook-dflip-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/3d-flipbook-dflip-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Deepak Ghimire](https://wordpress.org/support/users/deip/)
 * Last activity: [2 weeks, 6 days ago](https://wordpress.org/support/topic/bad-end-offset-error-solution/#post-18938143)
 * Status: resolved